JSON parsing to Java - Android application

后端 未结 5 1457
情话喂你
情话喂你 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条回答
  •  鱼传尺愫
    2020-11-30 15:39

    First of all, you need to know about Json parsing in android, so for that first read this: JSONObject, in that class, you will see the below methods:

    1. getJSONArray(String name)
    2. getJSONObject(String name)
    3. getString(String name)

    and many more methods to be used while implementing JSON parsing in android.

    Update:

    And if you are still confused then click on below link to have many examples available on web: Android JSON Parsing

提交回复
热议问题