import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
String json="{\"translation\":\"你好吗\"}";
//String json="{'translation':'你好吗'}";
JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject();标签:google,String,JsonObject,json,JSON,字符串,字段,translation From: https://www.cnblogs.com/xbinbin/p/17647956.html
String fieldValue = jsonObject.get("translation").getAsString();
System.out.println(fieldValue); //你好吗