json object accessing

前端 未结 1 512
北恋
北恋 2021-01-29 01:27

i know its very simple thing but i m stucked on it

i have json variable with data as follow

var jsonText =
 \'[ { \"user\": [ { \"Gender\": \"M\", \"Mina         


        
相关标签:
1条回答
  • 2021-01-29 01:50

    For maritialtype:

    jsonObject[1].user[0].maritialtype
    

    For Value:

    jsonObject[2].user[0].Value
    

    Because you have an array of three objects, user, which is an array or one object. It's kind of a weird structure.

    0 讨论(0)
提交回复
热议问题