Retrieving values from nested JSON Object

后端 未结 6 1290
星月不相逢
星月不相逢 2020-12-02 19:37

I\'ve got JSON file, which I want to parse. The JSON file (\"myfile\") has format as follows:

{
    \"LanguageLevels\": {
        \"1\": \"Początkujący\",
           


        
6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 20:00

    JSONArray jsonChildArray = (JSONArray) jsonChildArray.get("LanguageLevels");
        JSONObject secObject = (JSONObject) jsonChildArray.get(1);
    

    I think this should work, but i do not have the possibility to test it at the moment..

提交回复
热议问题