Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How does node.js turn an array of json objects into strings?
How does node.js turn an array of json objects into strings?
JSON.stringify(obj) converts JS objects into strings.

var json = { aa: ['sdddssd'],

bb: [ '892394829342394792399 ',' 23894723984729374932874' ],

Cc: ['1111111/kloc-0.

= & gtvar string = JSON.stringify(json)

String:

{"aa":["sdddssd"]," bb":["892394829342394792399 "," 23894723984729374932874"]," cc ":[" 1 1 1 1 1 165438+"

JSON.parse(string) converts a string into a JS object.