Json extract and use data (node.js)

前端 未结 5 995
南方客
南方客 2021-01-20 01:56

How can I access this data?

Here is my Json:

 {
  \"6a768d67-82fb-4dd9-9433-d83dbd2f1b78\": {
    \"name\": \"Bahut\",
    \"11\": {
      \"timestam         


        
5条回答
  •  时光说笑
    2021-01-20 02:20

    Access the JSON like you would an array, eg:

    data["a12d22cc-240e-44d6-bc58-fe17dbb2711c"].name
    

    jsfiddle

提交回复
热议问题