Skript-Gson

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

CoffeeRequired updated skJson with a new update entry:

SkJson 2.0

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...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

SkJson 2.9

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...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

SkJson legacy

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
*...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

SkJson 2.9

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...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

Async-await-request, Literal Json String

Working with Json within a literal has been added,
as well as improved asynchronous processing for the Request class.
Example of Request

If there is a return in on complete then skjson will recognize that you want to wait for a response, RECOMMENDATION: use this only when you know the server is available.
also in on complete you can execute any code because this section is so called executable

Code:
function...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

Fixed Requests | Webhooks

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
Code:
on load:
    make new GET request to "https://dummyjson.com/products/2" and store it in {_data}:
       content: {_content}
       status code: {_code}
    execute {_data} and wait
    send {_content}
When you...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

new expression for handling files in the directory.

AllJsonInFolder
Code:
on script load:
    send all json files in dir "./plugins/Skript/JSONS"

    loop all json files in dir "./plugins/Skript/JSONS":
        send loop-file
        send json from file loop-file

that will allowed to you, loop through directory and get the path of the given file and also the json from it.

Full Changelog: https://github.com/SkJsonTeam/skJson/compare/2.9.6...2.9.7

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

Major SkJson Update (Breaking changes!)

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
Code:
on script load:
    async make POST request to "https://dummyjson.com/carts/add":
        headers: "Content-Type: application/json"
        content: json from text "{userId: 1, products: [{id: 1, quantity: 1}, {id: 50, [quote][/quote]quantity: 2}]}"...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

Fix Some small issues and typos

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


[!IMPORTANT]
## BugFixes
##### 1. Bug regarding bad encoding of ASCII...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

Fix editing files, request on authorized website, fix patch request

Full Changelog: https://github.com/cooffeeRequired/skJson/compare/3.0.3...3.0.4

[!IMPORTANT]
## BugFixes
### 1. Bug regarding on editing files. with effect edit
>
Code:
[quote][/quote]command changefile:
>	trigger:
>		edit value "type" of json file "plugins/Skript/scripts/test.json" to "DIAMOND"
[quote][/quote]`
###### Before
Code:
[quote][/quote]changefile...

Read the rest of this update entry...
 
CoffeeRequired updated skJson with a new update entry:

Fix nbt issues, add ~ as path identifier

Full Changelog: https://github.com/cooffeeRequired/skJson/compare/3.0.6...3.0.7

[!IMPORTANT]
## BugFixes
##### 1. Bug regarding bad parsing of nbt https://github.com/cooffeeRequired/skJson/issues/90
Code:
[quote][/quote]command /addtrade:
[quote][/quote]   permission: OP
[quote][/quote]   trigger:
[quote][/quote]      set {_jt} to json from file "plugins/SkJson/test.json" # this is my json file...

Read the rest of this update entry...