skJson

Addon skJson 3.0.2-IO

  • 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!

skript-gson 2.0.2

200513198-968073f2-8249-4c40-b161-e81ac7a92f99.png


  • Hello everyone
Addon

  • ♾️ Fixed: ExprSkriptCollectionToJson.class
  • Now you can finally change/set/remove nested things from Skript Variable and than make a formatted json!
  • ♾️ Fixed: JsonElementType.class
  • Fixed nested things for adding/remove, removed the SimplyKey.class hence ~ now you can use normally "String", false (Boolean), 10 . - (Integer) and so on, but if you want to change or remove the nested key there is another procedure:
  • if you do not add anything to the nested object you can use the clasic Object (String, bool, etc...)
    if you want to insert into a nested object you have to write it in the string "obejct1:emoji_astonished:bjectX:Key;Value"
  • Also you can mapped your own json
Code:
set {_json} to new json from string "{'A': {}, 'B': [], 'C': {'G': {}}}"
add false to {_json}                      # example 1
add "A:test;false" to {_json}          # example 2
add "C:G:test;A" to {_json}            # example 3
Code:
# Show case 1
{"A": {}, "B": [], "C": {"G": {}}, "3": false}
# Show case 2
{"A": {"test": false}, "B": [], "C": {"G": {}}}
# Show case 3
{"A": {}, "B": [], "C": {"G": {"test": "A"}}}
  • ♾️ Fixed: MapJson.class
  • Finally don't returning any nulls.
  • ♾️ Sanitized: All syntaxes..
Thank you all for your attention.
Sincerely Coffee.


FTW skript-gson

Full Changelog: https://github.com/cooffeeRequired/skript-gson/compare/2.0.0...2.0.2
New release of skript-gson it's out. 2.0.0 Fixed all known mapping bugs, also added SkriptTypes and Bukkit type conversion, also Inventory. Changed functionality and loaded Json as a custom ID, etc. https://skripthub.net/docs/?addon=skript-gson https://github.com/cooffeeRequired/skript-gson/releases/tag/2.0.0
Skript-Gson 1.4.0

200513198-968073f2-8249-4c40-b161-e81ac7a92f99.png


  • Hello everyone
  • demonstration of this version

    Code:
    on script load:
        load json file "gson/test.json" as "gson"
        set {-file} to "gson/test.json"
    
    command saveloc [<string>]:
        trigger:
            append data (player's location) with key arg-1 to json file {-file}
            send "Location &8(&e%player's location%&e)&r saved in the json File."
    
    command teleport:
        trigger:
            set {_} to element "test" from json (loaded json "gson")
            send "Teleporting player to Location &8'&etest&8'"
            teleport player to {_}

    more on git Hub..

    Thank you all for your attention.
    Sincerely Coffee.


    FTW skript-gson

    https://github.com/cooffeeRequired/skript-gson/releases/tag/1.4.0
Skript-Gson 1.3.3
200513198-968073f2-8249-4c40-b161-e81ac7a92f99.png
  • Hello everyone
Addon
  • Change issues with skript-gson
  • Addon got Approved on skUnity.


Thank you all for your attention.
Sincerely Coffee.
FTW Skript-Gson [b

]Full Changelog[/b]: https://github.com/cooffeeRequired/skript-gson/compare/1.3.0...1.3.3
Docs
  • Fixed docs on GitBook.
Addon
  • Fixed version of Skript-Gson, which is now free of dangerous bugs. Json Mapping fix
  • Feature 'with variables'
  • Feature ~%object% -> JsonKeys for Changer
Thank you all for your attention. Sincerely Coffee. FTW Skript-Gson Full Changelog: https://github.com/cooffeeRequired/skript-gson/compare/1.2.2...1.3.1
Skript-Gson 1.3.0
200513198-968073f2-8249-4c40-b161-e81ac7a92f99.png
Docs
  • Fixed docs on GitBook.
Addon
  • Fixed version of Skript-Gson, which is now free of dangerous bugs. Json Mapping fix will be out in 2 days
  • Fixed Mapping of Json
  • Fixed Form Formatted json from Mapped json List List
  • Fixed Create Json.
  • Fixed New json things
  • Fixed Writing or Appending to the file
  • Add ChangeJson.
  • Add RegexMatchJson
  • Added Json Has or Hasn't key
  • Added Color Support, decoding in the file.
  • Added Better Sterilizer for Skript/Bukkit Classes
  • Removed necessary things..
Thank you all for your attention. Sincerely Coffee. FTW Skript-Gson Full Changelog: https://github.com/cooffeeRequired/skript-gson/compare/1.2.2...1.3.0
https://github.com/cooffeeRequired/skript-gson/releases

Skript-Gson 1.2.0

Hello everyone
This patch won't please some of you, mainly because after reaching the 50th download milestone we noticed that few people know how Non-Literal Json means [code single]json ...[/code] works.

So we decided to remove this feature and work on improvements in putting and adding to the Json file/variable.
The last version is rather a mess and so this version will be cleaned of all necessities plus the examples will be corrected so that the layman can understand them

Format
➕ Finished: [code single]ExprNewJson.class[/code]
Code:
[a] [new] json from [(text|string|request)] %object%
❌ Removed: [code single]Non-Literal from ExprNewJson.class[/code]
➕ Added: serialization\deserialization for [code single]ItemTypes,BlockData[/code] etc.. More here

Expressions
➕ Finished: [code single]ExprJsonListToJsonElement.class[/code] -> Fixed working with objects, now you can change the whole variable.
➕ Added: [code single]ExprCountOfJson.class[/code]
Code:
[a] count of [key] %string% in %jsonelement%
➕ Added: [code single]ExprJsonRegexMatch.class[/code]
Code:
[json] %jsonelement% [regex] match[es] %string%
♾️ Change/Fix: [code single]ExprLoadJsonFile.class[/code] -> At this moment i cannot guarantee the syntax

Effects
♾️ Planed: [code single]EffHandleJsonFile.class[/code]
Code:
load json file %string% as id %string%
unload json file [id] %string%
save json file [id] %string%
♾️ Planed-Rework: [code single]EffMapJsonToList.class[/code] -> will contains new feature.
♾️ Planed-Rework: [code single]EffWriteToFile.class[/code] -> will contains new feature.

Conditions
➕ Added: [code single]CondJsonHas.class[/code]
Code:
%jsonelement% has (:key|:value) %objects%
%jsonelement% has list (:keys|:values) %objects%
♾️ Planed-Rework: [code single]CondJsonValueObject.class[/code]
Code:
[a] value %string% in %jsonelement% is (:true|:false)
[a] value %string% in %jsonelement% is string
[a] value %string% in %jsonelement% is integer
[a] value %string% in %jsonelement% is boolean
[a] value %string% in %jsonelement% can be parsed
Thank you all for your attention. \
Sincerely Coffee.

FTW *Skript-Gson*
*
upload_2022-11-6_23-17-12.png


Hello everyone

This patch fixes bugs #1, #2
and also fixes a syntax error where you couldn't use variables for example in
Code:
'append.. '

Change from
Code:
...

  "[a] [new] json from (string|text) %string%",
  "[a] [new] json from file [path] %string%",
  "json (([<.+>])|({<.+>}))",
  "(<'.+'>)"

...
On \

Code:
...

"[a] [new] json from (string|text) %string%",
"[a] [new] json from file [path] %string%",
"(json ((<\\[.*\\]>)|(<\\{.*\\}>)|((\\\"|')<.+>(\\\"|'))|(<(true|false)>)))"

...
[h3]Also added a new substring \[/h3]
Code:
[a] json file %object% is exist