블로그
- [JSON]parse() : browser receive data from Web Server with Object ":"New York"}'Use the JavaScript function JSON.parse() to convert text into a JavaScript object: var obj = JSON.parse('{ "name":"John", "age":30, "city":"New York"}');Make sure the text is written in JSON
- [JSON]stringify() : browser sends data to Web Server with String Stringify a JavaScript ObjectImagine we have this object in JavaScript: var obj = { "name":"John", "age ":30, "city":"New York"};Use the JavaScript function JSON.stringify() to convert it into a string. var