Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const myObject = { a: 'hello', b: 5, c: true, d: [1, 2, 3], e: { f: {} } };
- const myObjectJson = JSON.stringify(myObject);
- console.log('myObject: ', myObject);
- console.log('myObjectJson: ', myObjectJson);
- const myObjectParsed = JSON.parse(myObjectJson);
- console.log('myObjectParsed: ', myObjectParsed);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement