<pre name="code" class="java">import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
Map<String, Object> record=...;
String json =new Gson().toJson(record);
JsonObject jsonObject =new JsonParser().parse(json).getAsJsonObject();
int phone=jsonObject.get("phone").getAsInt();
System.out.println(phone);