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. |
Checks (True / False) 1
| _isLiveObject() | A display object, picture or GPU texture: the screen's, not the game's state. |
Other 4
| stringify() | Converts an object to a JSON string with object information. |
| parse() | Parses a JSON string and reconstructs the corresponding object. |
| _encode() | Encode. |
| _decode() | Decode. |
Setup & Creation
makeDeepCopy
static sourceJsonEx.makeDeepCopy(object)
Makes a deep copy of the specified object.
Details
Makes a deep copy of the specified object.
Checks (True / False)
_isLiveObject
static internal sourceJsonEx._isLiveObject(value)
A display object, picture or GPU texture: the screen's, not the game's state.
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.
_encode
static internal sourceJsonEx._encode(value, depth)
Encode. (Same as the RPG Maker MZ method of this name.)
_decode
static internal sourceJsonEx._decode(value)
Decode. (Same as the RPG Maker MZ method of this name.)