A function that converts a JavaScript value to a JavaScript Object Notation (JSON) string.
A common use of JSON
is to exchange data to/from a web server.
When sending data to a web server, the data has to be a "string".
Convert a JavaScript object into a string with JSON.stringify().
JSON.stringify() documentation.