How to convert an Object into JSON? What is the full syntax of JSON.stringify?

JSON.stringify method is used to convert an Javascript Object into JSON.
Syntax:
let json = JSON.stringify(value[, replacer, space])