Familiar territory. JsonEx keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
The static class that handles JSON with object information.
function JsonEx()
Quick Reference
Setup & Creation 1
| makeDeepCopy() | Makes a deep copy of the specified object. |
Other 2
| stringify() | Converts an object to a JSON string with object information. |
| parse() | Parses a JSON string and reconstructs the corresponding object. |
Setup & Creation
makeDeepCopy
static sourceJsonEx.makeDeepCopy(object)
Makes a deep copy of the specified object.
Details
Makes a deep copy of the specified object.
Other
stringify
static sourceJsonEx.stringify(object)
Converts an object to a JSON string with object information.
Details
Converts an object to a JSON string with object information.
parse
static sourceJsonEx.parse(json)
Parses a JSON string and reconstructs the corresponding object.
Details
Parses a JSON string and reconstructs the corresponding object.