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 (Text):
[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 (Text):
[a] count of [key] %string% in %jsonelement%
➕
Added: [code single]ExprJsonRegexMatch.class[/code]
Code (Text):
[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 (Text):
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 (Text):
%jsonelement% has (:key|:value) %objects%
%jsonelement% has list (:keys|:values) %objects%
♾️
Planed-Rework:
[code single]CondJsonValueObject.class[/code]
Code (Text):
[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*
*