Skip to content

skJson 2.5.9 (Fixed Changer!)

Compare
Choose a tag to compare
@cooffeeRequired cooffeeRequired released this 21 Jan 12:40
· 412 commits to main since this release

skJson 2.5.9 ⚠️

Introduce 🟢

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

Example

on load:
    set {_json} to json from string "{'A': [1,2,3,4,{'B':false}]}"
    set json value "A[1]" of {_json} to true
    
    # Before {"A":[1,2,3,4,{"B":false}]}
    
    remove json value "A[4]:B" from {_json}
    add values 1,2,3,4 to {_json}
    send {_json}
    
    # After {"A":[1,2,3,4,{}]}

    load json file "try3.json" as "try"
    send cached json "try"
    set json value "A[0]" of cached json "try" to true
    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: 2.5...2.5.9