JSON in JavaScript

What is JSON?

JSON Methods

JSON.stringify(value)
  • 1. JSON.stringify() is a method that converts a JavaScript object or value into a JSON string.
  • 2. Returns JSON.
  • 3. It does not support: function properties, symbolic keys and values, and properties that store undefined.
JSON.parse(value)
  • 1. JSON.parse() is a method that converts JSON string into JavaScript object or value.
  • 2. Returns plain JavaScript object.