Parsing JSON in java

后端 未结 1 1669
有刺的猬
有刺的猬 2020-12-18 09:03

I\'m trying to parse JSON in android but am having trouble with accessing sub children of an object. I am trying to extract augment from the following,

{\"au         


        
相关标签:
1条回答
  • 2020-12-18 09:37

    Without more detail of what's going wrong, I can't tell what the problem might be. Are you getting errors? Can you post some code?

    Do you have something like this?

    json.getJSONObject("augment-list").getJSONArray("augment").getJSONObject(0).getInt("id")
    
    0 讨论(0)
提交回复
热议问题