skJson by CoffeeRequired
Working with json in skript
Events
1
Expressions
14
Effects
11
Conditions
6
Types
2
Sections
2
Structures
0
Total
36
Working with json in skript
Events
1
Expressions
14
Effects
11
Conditions
6
Types
2
Sections
2
Structures
0
Total
36
Full Changelog: https://github.com/cooffeeRequired/skJson/compare/3.0.6...3.0.7
Full Changelog: https://github.com/cooffeeRequired/skJson/compare/3.0.5...3.0.6
Full Changelog: https://github.com/cooffeeRequired/skJson/compare/3.0.4...3.0.5
Full Changelog: https://github.com/cooffeeRequired/skJson/compare/3.0.3...3.0.4
What's Changed
* Switch from json serializaton to custom adapters by @SkJsonTeam in https://github.com/SkJsonTeam/skJson/pull/85
* Switch from json serializaton to custom adapters by @cooffeeRequired in https://github.com/SkJsonTeam/skJson/pull/89
Full Changelog: https://github.com/SkJsonTeam/skJson/compare/3.0.1...3.0.3
Fix broken
save json %string% For example, the operations for linking a file were error, fix (save json "..."), that will handle in the newest Skript version as World.
Fix cache - cache will be keep until reload/restart your server
Full Changelog: https://github.com/SkJsonTeam/skJson/compare/3.0.1...3.0.2-IO
Change from Effect to AsyncEffect to process asynchronous operations exactly as expected. For example, the operations for linking a file were error
Full Changelog: https://github.com/SkJsonTeam/skJson/compare/3.0.0...3.0.1
Major updates to SkJson (breaking changes!)
Internal API has been changed for the latest version only
Skript 2.8+ is supported, also requests have been changed, now they are more skript friendly from
AllJsonInFolder
we changed from using NBT-Items to SKBee because Nbt was not working properly.
What's Changed
* Fix nbt using skbee by @cooffeeRequired in https://github.com/SkJsonTeam/skJson/pull/81
Full Changelog: https://github.com/SkJsonTeam/skJson/compare/2.9.4...2.9.6
Fixing some small issues, non-async request was fixed.
Requests
This release fixes a serious bug in requests and webhooks that asynchronous startup did not work and blocked the main thread...
! It has also been removed for now
on complete until I find out exactly why it blocked the main thread as well
Working with Json within a literal has been added,
as well as improved asynchronous processing for the Request class.
Example of Request
SkJson 2.9.1
Fixes
16:52 - 24.09
1. Pretty print
2. Command
skJson about
Full Changelog: https://github.com/SkJsonTeam/skJson/compare/2.9...2.9.1
SkJson 2.9
It's finally here, we have finally seen a fully stable version of SkJson, i.e. version 2.9 which introduced SkJson in the biggest steam, A lot of changes have been made from the ground up.
We have created our own documentation page for SkJson, on this page we will be able to post thready where you can share your code https://www.skjson.xyz/snippests, we also have documentation for both versions with examples. The documentation is automatically updated! Let's get started on the changes!
Condition
* Json file exist
* Json file is cached
* Json file is listening
* Json has value/key[s][/s][s]
* Json is empty
* Type of json
Expressions
* Count value/key[s] in the Json.[/s][s]
* Get cached json
* Get index of key/value in (ListObject)
* Literals
* Loops
* New Json
* Pretty print
* Size of json object/array
* Skript variable to Json
* Value[s] of JSON[/s][s]
Effects
* Change json file contents
* Json (virtual) storage [lon-linked]
* Json to Skript variable list
* JsonWatcher - Start/Stop listening to file
* Link json file with defined cache
* New json file with/out content
* Save cached json to file
* Unlink or unload json file from cache
* Write content to json file
* link and load all json files from given folder
Events
* [url=https://skjson.xyz/documentation/beta#event-jsonwatchersave]Json watcher save[/url]
Sections
* Http requests (All methods includes)
* Webhooks (Discord/Web)
Functions
* b64 (Decoding from String to B64)
* [url=https://skjson.xyz/documentation/beta#function-function[/i]skjson_getdelim]skjsongtdelim (Get your defined delimiter)[/url]
Types
* JSON
* JSON-WEBHOOK
* JSON-ENUM ( WEBREQUEST METHODS )
Changers
* JSON-ARRAY
* JSON-OBJECT
Resolved Issues.
* #69
* #65
* #64
* #63
* #62
* #61
* #60
* #59
* #58
* #45
* #41
* #39
* #38
Special thanks...
I would like to thank everyone who participated in testing and trying out all sorts of features, and especially I would like to thank those who reported all the bugs!
Thank again! (@MinecraftNight4, @yhdev7935, @ExCorde, @Nocky, @welormit, @Envizar, @RedstoneGamer54)
What's Changed
* Update main from 2.8.6 to 2.9 by @SkJsonTeam in https://github.com/SkJsonTeam/skJson/pull/70
Full Changelog: https://github.com/SkJsonTeam/skJson/compare/2.8.6...2.9[/s][/s][/s]
SkJson 2.8 (latest 2.8.6) Legacy
This is legacy version fro Skript 2.6.3 +
We have created our own documentation page for SkJson, on this page we will be able to post thready where you can share your code https://www.skjson.xyz/snippests, we also have documentation for both versions with examples. The documentation is automatically updated! Let's get started on the changes!
Condition
* Json file exists
* Json file is cached
* Json file is empty
* Json file is listening
* Json has value/key
* Json is empty
* Type of json
Expressions
* All cached jsons
* Array or List formatted to JSON.
* Count of objects/phrases
* Elements/Values of the json
* Get cached json
* Get last response
* Json size of given Json
* New json
* Pretty json
Effects
* Execute a http request
* JsonWatcher - Start listening to file
* JsonWatcher - Stop listening to file
* Link json file with defined cache.
* Map json to skript list
* New json file
* Save cached json to file
* UnLink or Unload json file
* Write json file with contents
* change json file
* link and load all json files from given folder
Functions
* jsonfile
Types
* json element
* json file
Changers
* Default changer of skJson (SET/REMOVE/ADD)
Resolved Issues.
* #71
* #64
* #63
* #42
* #41
* #39
* #38
* #37
* #24
* #22
* #21
* #20
* #19
* So one...
Special thanks...
I would like to thank everyone who participated in testing and trying out all sorts of features, and especially I would like to thank those who reported all the bugs!
Thank again! (@MinecraftNight4, @yhdev7935, @ExCorde, @Nocky, @welormit, @Envizar, @RedstoneGamer54)
@!Legacy
SkJson 2.9
It's finally here, we have finally seen a fully stable version of SkJson, i.e. version 2.9 which introduced SkJson in the biggest steam, A lot of changes have been made from the ground up.
We have created our own documentation page for SkJson, on this page we will be able to post thready where you can share your code https://www.skjson.xyz/snippests, we also have documentation for both versions with examples. The documentation is automatically updated! Let's get started on the changes!
Condition
* Json file exist
* Json file is cached
* Json file is listening
* Json has value/key[s][/s][s]
* Json is empty
* Type of json
Expressions
* Count value/key[s] in the Json.[/s][s]
* Get cached json
* Get index of key/value in (ListObject)
* Literals
* Loops
* New Json
* Pretty print
* Size of json object/array
* Skript variable to Json
* Value[s] of JSON[/s][s]
Effects
* Change json file contents
* Json (virtual) storage [lon-linked]
* Json to Skript variable list
* JsonWatcher - Start/Stop listening to file
* Link json file with defined cache
* New json file with/out content
* Save cached json to file
* Unlink or unload json file from cache
* Write content to json file
* link and load all json files from given folder
Events
* [url=https://skjson.xyz/documentation/beta#event-jsonwatchersave]Json watcher save[/url]
Sections
* Http requests (All methods includes)
* Webhooks (Discord/Web)
Functions
* b64 (Decoding from String to B64)
* [url=https://skjson.xyz/documentation/beta#function-function[/i]skjson_getdelim]skjsongtdelim (Get your defined delimiter)[/url]
Types
* JSON
* JSON-WEBHOOK
* JSON-ENUM ( WEBREQUEST METHODS )
Changers
* JSON-ARRAY
* JSON-OBJECT
Resolved Issues.
* #69
* #65
* #64
* #63
* #62
* #61
* #60
* #59
* #58
* #45
* #41
* #39
* #38
Special thanks...
I would like to thank everyone who participated in testing and trying out all sorts of features, and especially I would like to thank those who reported all the bugs!
Thank again! (@MinecraftNight4, @yhdev7935, @ExCorde, @Nocky, @welormit, @Envizar, @RedstoneGamer54)
What's Changed
* Update main from 2.8.6 to 2.9 by @SkJsonTeam in https://github.com/SkJsonTeam/skJson/pull/70
Full Changelog: https://github.com/SkJsonTeam/skJson/compare/2.8.6...2.9[/s][/s][/s]
SkJson 2.9
It's finally here, we have finally seen a fully stable version of SkJson, i.e. version 2.9 which introduced SkJson in the biggest steam, A lot of changes have been made from the ground up.
We have created our own documentation page for SkJson, on this page we will be able to post thready where you can share your code Snippets, we also have documentation for both versions with examples. The documentation is automatically updated! Let's get started on the changes!
More here!
https://github.com/SkJsonTeam/skJson/releases/tag/2.9
SkJson 2.8.6
Fixed several issue with Paper/Purpur and skript 2.7.0 beta.
Fixed nulls elements by (SET/ADD) new element to JsonArray/JsonObject
Add loading json files from folder to the cache
https://github.com/SkJsonTeam/skJson/releases/tag/2.8.6
SkJson 2.8.5
[h4]Fixed java issue and file writing[/h4]
[h3]Minecraft support:[/h3]
- 1.13 - 1.16.5,
- 1.16.5-1.20
[h3]Skript version: [/h3]
- 2.7.0 - Beta 1,
- 2.7.0 - Beta 2,
- 2.6.4
What's Changed
Update Reflection.java by @cooffeeRequired in https://github.com/SkJsonTeam/skJson/pull/50
Full Changelog: https://github.com/SkJsonTeam/skJson/compare/2.8.4...2.8.5
Thank everyone for their support for ideas
Sincerely coffeeRequred.
❤
SkJson 2.8.3
Doc's updated (SkUnity, SkriptHub)
Skript version:
SkJson - 2.8.2 Small Fixes
Updated examples,
Added examples for JsonChanger,
Also Using @NoDoc for Expression which are only auxiliary,
Also fixed bug which caused that longer strings were not saved to cached json..
Also modified debug system. https://github.com/cooffeeRequired/skJson/releases/tag/2.8.2
A lot of changes have been made, practically the whole addon is redesigned for performance reasons, some features are added but please read more on Github
Thanks CoffeeRequired!
skJson 2.7.0⚠️
Introduce
Hello everyone.
- Fix small bugs
- Fixed bundles
- Cleanup code
- fix Typos
[h3]Example[/h3]
skJson pre-release 2.7.0⚠️
Introduce
> Hello everyone.
- Fix small bugs #22 #21 #20
- Fixed bundles
- Cleanup code
- fix Typos
[h3]Example[/h3]
"items": [
{"==":"org.bukkit.inventory.ItemStack","v":3218,"type":"APPLE","meta":{"==":"ItemMeta","meta-type":"UNSPECIFIC","display-name":"{\"extra\":[{\"bold\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false,\"color\":\"white\",\"text\":\"Tomate\"}],\"text\":\"\"}","custom-model-data":1}},
{"==":"org.bukkit.inventory.ItemStack","v":3218,"type":"APPLE","meta":{"==":"ItemMeta","meta-type":"UNSPECIFIC","display-name":"{\"extra\":[{\"bold\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false,\"color\":\"white\",\"text\":\"Tomate2\"}],\"text\":\"\"}","custom-model-data":1}},
{"==":"org.bukkit.inventory.ItemStack","v":3218,"type":"APPLE","meta":{"==":"ItemMeta","meta-type":"UNSPECIFIC","display-name":"{\"extra\":[{\"bold\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false,\"color\":\"white\",\"text\":\"Tomate3\"}],\"text\":\"\"}","custom-model-data":1}}
],
"nums": [
1,
2,
3,
0
]
}
```vb
command try:
trigger:
set {_} to json from file "items/test.json"
send {_}
remove json object player's tool from nested object "items" of {_}
remove json index 1 from nested object "nums" of {_}
send {_} with pretty print
````
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.6.21...pre-release-2.7.0
skJson 2.6.21⚠️
Introduce
Hello everyone.
New conventors for json.
skJson 2.6.2⚠️
Introduce
Hello everyone.
- New conventors for json.
- Adding automatic parsing.
- Cleanup code
- fix Typos
From
skJson 2.6.1⚠️
Introduce
Hello everyone.
Hotfixed issue #11 , also the #13
Also was fixed all mapping / append / write issues.
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.9...2.6.1
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
skJson 2.5 ⚠️
Introduce
Hello everyone.
This is a big milestone for skJson addon (*skript-gson*)
One of the first pieces of information is that it has been renamed from the current skript-gson to skJson. I renamed this addon because the gson in the name said little to anyone and was not as representative. thus skJson contains both json in the word and Skript (sk)
I should also mention that support for older versions of minecraft server has been added. Since version 1.8.8 this addon is able to work.
I must also mention that the kernels for file handling and json serialization have been redesigned. For example, you can now serialize nbt and or entities.
A lot of syntax has been modified and simplified. one of my favorites is the Append effect, here is an example
Hello everyone
Hi there we have a couple of changes regarding the new json from the request, also changes in the Versioning Area and its automatic updates.
Thank you all for your attention.
Sincerely Coffee.
Full Changelog: [URL='https://forums.skunity.com/http:/#%20skript-gson%202.0.4%20%F0%9F%94%B0%20![Git](https://user-images.githubusercontent.com/106232282/200513198-968073f2-8249-4c40-b161-e81ac7a92f99.png)%20-%20##%20**Hello%20everyone%20%F0%9F%91%8B**%20Hi%20there%20we%20have%20a%20couple%20of%20changes%20regarding%20the%20new%20json%20from%20the%20request,%20also%20changes%20in%20the%20Versioning%20Area%20and%20its%20automatic%20updates.%20%20Thank%20you%20all%20for%20your%20attention.%20\%20Sincerely%20Coffee.%20%F0%9F%91%8B%20%20**FTW**%20*skript-gson*%20%20**Full%20Changelog**:%20https://github.com/cooffeeRequired/skript-gson/compare/2.0.4...2.1.0']https://github.com/cooffeeRequired/skript-gson/compare/2.0.4...2.1.0[/URL]
Hello everyone
Changed internal object mapping for Items, now you are able to pull Item from mapped json as well
command saveinv:
trigger:
set {inv} to json from player's inventory
command listinv:
trigger:
map {inv} to {_inv::*}
loop (indices of {_inv::contents::*}):
if {_inv::contents::%loop-value%::*} is set:
set {_item} to {_inv::contents::%loop-value%::*}'s form parsed as skript-type
give {_item} to "player's name" parsed as player
[/code]
[/FONT]
added - all json elements from %jsonelement%
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
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
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:
❌ Removed:
➕ Added: serialization\deserialization for
Expressions
➕ Finished:
➕ Added:
➕ Added:
♾️ Change/Fix:
Effects
♾️ Planed:
unload json file [id] %string%
save json file [id] %string%
♾️ Planed-Rework:
♾️ Planed-Rework:
Conditions
➕ Added:
%jsonelement% has list (:keys|:values) %objects%
♾️ Planed-Rework:
[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*
*
Hello everyone
This patch fixes bugs #1, #2
and also fixes a syntax error where you couldn't use variables for example in
https://github.com/cooffeeRequired/skript-gson/releases/tag/1.1.1
https://github.com/cooffeeRequired/skript-gson/releases/tag/1.1.0
Skript-Gson 1.1.0
This this realese brings new features such as.
Expressions
Check out : https://skripthub.net/docs/?id=8183