An Object to String the JSON.stringify ()
const obj = {
id: 1,
name: 'jessie-xian',
age: 18
}
const objToStr = JSON.stringify(obj)
console.log('obj:', obj)
console.log('objToStr:', objToStr)
II. String turn the JSON.parse Object ()
const str = '{"id":1,"name":"jessie-xian","age":18}'
const strToObj = JSON.parse(str)
console.log('str:', str)
console.log('strToObj:', strToObj)