- Supported Minecraft Versions
- 1.7
- 1.8
- 1.9
- 1.10
- 1.11
Handle JSON objects using list variables. This addon was originally designed to work with Web APIs that use JSON for input and output, but it will also work well in any situation that requires parsing and serializing JSON.
Documentation/Source - Releases
Quickstart
code_language.skript:
set {_input} to "{""age"": 15, ""catchphrase"": ""heeyaw"", ""nicknames"": [""ftaang"", ""bleh""]}"
# {_output::*} can be any list variable
copy json {_input} to {_output::*}
{_output::age} is 15
{_output::catchphrase} is "heeyaw"
{_output::nicknames::*} is "ftaang" and "bleh"
{_output::nicknames::1} is "ftaang"
{_output::nicknames::2} is "bleh"
# You can loop these variables just like any list variable!
loop {_output::*}:
message "%loop-index% = %loop-value%"
loop {_output::nicknames::*}:
message loop-value