-2
我有以下的JSONObject:解析的JSONObject
{"Questions":
"{Question5=[Answer1, Answer2, Answer3, Answer4], Question4=[Answer1, Answer2, Answer3, Answer4], Question3=[Answer1, Answer2, Answer3, Answer4], Question2=[Answer1, Answer2, Answer3, Answer4], Question1=[Answer1, Answer2, Answer3, Answer4]}"
}
我在JSON的真正的新。我需要的是JSON对象的数组,每个关键是Question5,Question4等,值是答案。你能帮我吗?
您看过[Jackson](http://jackson.codehaus.org/)或[GSON](https://code.google.com/p/google -gson /)? – mkobit 2014-09-27 20:09:27
转到json.org以了解JSON语法。学习只需要5-10分钟。但请注意,如果您转储地图和列表,或某些JSON API使用的Map/List等效对象,则它们可能不会像JSON源一样显示(通过'toString()'在'println'中显示)。 – 2014-09-27 20:19:44
但它确实看起来像你的“问题”字符串真的只是一个字符串,而不是JSON。 – 2014-09-27 20:21:02