parsing JSON in nodejs

后端 未结 2 1000
死守一世寂寞
死守一世寂寞 2021-01-01 02:08

Hi i have the below json

{id:\"12\",data:\"123556\",details:{\"name\":\"alan\",\"age\":\"12\"}}

i used the code below to parse



        
2条回答
  •  时光说笑
    2021-01-01 03:07

    Since jsonobj has already been parsed as a JavaScript Object, jsonobj.details.name should be what you need.

提交回复
热议问题