This is nested JSON:
{ "id": 123, "message": { "text": "hi", "meta": { "flag": true } } }
In the above example, The value of "message" is a string, not an object.
That string happens to contain text that looks like a JSON object on the surface but it’s not.
It is just characters inside a string. No different from a log message or a paragraph in a document.
The JSON example was a bad example.
But what this means is maybe there needs to be guardrails developed just like web browsers had to do (to protect the user filesystem)
This is nested JSON:
{ "id": 123, "message": { "text": "hi", "meta": { "flag": true } } }
In the above example, The value of "message" is a string, not an object.
That string happens to contain text that looks like a JSON object on the surface but it’s not.
It is just characters inside a string. No different from a log message or a paragraph in a document.