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

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
Skript-Gson 1.1.0

This this realese brings new features such as.
Expressions


  • (load|open)[ed] json file %string%

Effects

  • write [new] data %jsonelement% to [json] file %object%

  • append(ing|) [new] data %jsonelement% to [json] file %object% [:emoji_slight_smile:as) [nested] object %-jsonelement% [:emoji_slight_smile:with) [property] key %-string/integer%]]

Full Changelog: https://github.com/cooffeeRequired/skript-gson/compare/1.0.2-Beta...1.1.0