How do I turn json objects into arrays? ? ?

  node.js, question

How do I turn json objects into arrays? ? ?
Json object:
{“phone_num_wxx “:”user’s mobile phone number “,”phone_city_wxx “:”mobile phone number DS-TE “,”sex_wxx “:”gender “,”income_wxx “:”income “,”age_wxx “:”age “}

You want to convert to an array like this:
[“phone_num_wxx “,”User’s Mobile Number “,”phone_city_wxx “,”Mobile Number DS-TE “,”sex_wxx “,”Gender “,”income_wxx “,”Income “,”age_wxx “,”Age “]

This is what you want

[key,value,name,value, …]

const list = []
 Object.keys(json).forEach(function(item, index) {
 this.push( item, json[item])
 }, list)

However, I think you should use circular rendering like this (if necessary, you can directly circular rendering, and the corresponding values are key and value)

[{},{},{}]

const list = Object.keys(json).map((item, index) => ({key: item, value:json[item]}))