JSON parsing to Java - Android application

后端 未结 5 1453
情话喂你
情话喂你 2020-11-30 14:40

I need help with parsing json string in Java Android Appl.

Text of JSON file:

{\"data\":{\"columns\":[\"location_id\",\"name\",\"description\",\"lati         


        
5条回答
  •  萌比男神i
    2020-11-30 15:44

    If you mean to navigate easily the Json Tree, you can use JSON Path, that is query system, similar to XPath to XML, that you can use to pick some elements in a json tree using text expressions.

    http://code.google.com/p/json-path/ That's a good implementation

    If you just mean that you want to parse that JSon you can use Gson from google (that is compatible with Android I guess).

提交回复
热议问题