我想从String
类型的JSON中解析数据。我正在使用Google Gson。
我有:
jsonLine = "
{
"data": {
"translations": [
{
"translatedText": "Hello world"
}
]
}
}
";
我的课程是:
public class JsonParsing{
public void parse(String jsonLine) {
// there I would like to get String "Hello world"
}
}
https://stackoverflow.com/questions/5490789
复制相似问题