Resource icon

Addon skript-json 1.1.0

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Supported Minecraft Versions
  1. 1.7
  2. 1.8
  3. 1.9
  4. 1.10
  5. 1.11
Idiomatic JSON integration for Skript. Convert JSON into list variables and vice versa.

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
Author
btk5h
Downloads
6,710
Views
6,710
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from btk5h

Latest updates

  1. skript-json 1.1.0

    Non-standard types are now serialized into valid JSON. Locations will be decomposed into a JSON...

Latest reviews

Awesome! btk5h is great developer <3