JSON Interview Questions

JSON Interview Questions Download JSON Interview Questions PDF

JSON Interview Questions

JSON.stringify(value); is used to convert Javascript objects into JSON.

Example Usage:

    var obj={"website":"Onlineinterviewquestions"};
    JSON.stringify(obj); // '{"website":"Onlineinterviewquestions"}'
JSON.stringify method is used to convert an Javascript Object into JSON.
Syntax:
let json = JSON.stringify(value[, replacer, space])
Douglas Crockford called as the Father of JSON. JSON is based on ECMAScript.