When your game loads a save file or receives data from a server, what arrives is plain text: a string that looks like an object, but is still just a string.
If you try to read a property like .name directly from that string, you get undefined:
↗️
Loading editor...
↶
↷
JSON.parse() is the exact opposite of JSON.stringify(). It reads a JSON string and rebuilds a real JavaScript object (or array) whose properties you can read and use normally:
↗️
Loading editor...
↶
↷
Tip: when writing a JSON string directly in your code, wrap the outer string in single quotes ('...') so the double quotes ("...") required inside the JSON do not clash with it.