1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon skJson 2.7,0

Working with json in skript

  1. skJson 2.5.9

    skJson 2.5.9 ⚠️


    Hello everyone.
    Fixed changers, for json you are now able to remove/add or set objects even with cached json.
    Added removing/setting for nested objects

    This error was related to this thread #8

    Version 2.5.9

    Code (Text):
    2. on load:
    3.     set {_json} to json from string "{'A': [1,2,3,4,{'B':false}]}"
    4.     set json value "A[1]" of {_json} to true
    6.     # Before {"A":[1,2,3,4,{"B":false}]}
    8.     remove json value "A[4]:B" from {_json}
    9.     add values 1,2,3,4 to {_json}
    10.     send {_json}
    12.     # After {"A":[1,2,3,4,{}]}
    14.     load json file "try3.json" as "try"
    15.     send cached json "try"
    16.     set json value "A[0]" of cached json "try" to true
    17.     send cached json "try"
    Please check SkriptHub or Wikipedia for syntax changes.
    ❌ If you found any bugs, feel free to post it.

    Sincerely, Coffee.

    Full Changelog: https://github.com/cooffeeRequired/skJson/compare/2.5...2.5.9
Return to update list...