最佳答案
我想解析来自类型为 String
的 JSON 的数据。
我正在使用 谷歌 Gson。
我有:
jsonLine = "
{
"data": {
"translations": [
{
"translatedText": "Hello world"
}
]
}
}
";
我的班级是:
public class JsonParsing{
public void parse(String jsonLine) {
// there I would like to get String "Hello world"
}
}