在Java中的复杂JSONObject中查找键的值

时间:2018-10-11 06:15:09

标签: json

如何找到价值 1:“ symTable”中的“接口” 2:“变量”内的“类型”,即“ symTable”内 在如下所示的复杂JSONObject中。

对于简单的JSONObject键值对来说,它很容易实现,但是我无法获取上述键的值。

enter code here

                                    {  
                   "totalSize":1,
                   "size":1,
                   "records":[  
                      {  
                         "symTable":{  
                            "constructors":[  ],
                            "interfaces":[  
                               "gangura.APIbow"
                            ],
                            "externalReferences":[  

                            ],
                            "variables":[  
                               {  
                                  "references":[  

                                  ],
                                  "name":"app",
                                  "annotations":[  

                                  ],
                                  "location":{  
                                     "line":17,
                                     "column":56
                                  },
                                  "modifiers":[  

                                  ],
                                  "type":"gangura__App"
                               },
                               {  },
                               {  },
                               {  }
                            ],
                            "methods":[  ],
                            "name":"APIbow",
                            "namespace":"genesis",
                            "parentClass":"",
                            "id":"gangura.APIbow",
                            "tableDeclaration":{  },
                            "properties":[  ],
                            "innerClasses":[  ]
                         },
                         "fieldsToNull":[  ]
                      }
                   ],
                   "entityTypeName":"ApexClass",
                   "done":true
                }

0 个答案:

没有答案