JSON.parse() converts JSON text (from http responses, MQTT messages or
files) into script objects. The reverse — serialising an object to JSON text —
is done with the global string() function.
Functions
JSON.parse() — Parses a JSON string into an object.
JSON.stringify() — Serialises a value to JSON text — equivalent to the global string() for objects.