I encountered a difficult problem when I was new to javascript,. I tried without success for a long time. So come up and ask everyone for advice.
how can I convert the json of the following structure into a two-dimensional array?
Code:
"piclist2": {
"/upload/images/2018-4-17/a1.jpg": {
"width": 1440,
"height": 900
},
"/upload/images/2018-4-17/a2.jpg": {
"width": 960,
"height": 600
},
"/upload/images/2018-4-17/a3.jpg": {
"width": 1920,
"height": 1200
},
"/upload/images/2018-4-17/a4.jpg": {
"width": 960,
"height": 600
}
}
to
"piclist2":[
["upload/images/2018-4-17/a1.jpg"
"width": 1440,"height": 900
],
["upload/images/2018-4-17/a2.jpg"
"width": 1440,
"height": 900
],
["upload/images/2018-4-17/a3.jpg"
"width": 1440,
"height": 900
],
["upload/images/2018-4-17/a4.jpg"
"width": 1440,
"height": 900
],
]
Thank you for your advice!