Skip to content

2.8.1

Compare
Choose a tag to compare
@cooffeeRequired cooffeeRequired released this 07 Apr 19:41
· 341 commits to main since this release

SkJson 2.8.1 💥

Skript version: 2.7.0 - Beta, 2.6.4 supported

Fixed

  1. HtmlEscaping & Nested Headers
  2. json %json% is empty
  3. fix url encoded POST data, instead of Query
  4. Encoded json POST data was sended with incorrect HTTP header

Add syntaxes

json list %string% in %json%
(:keys|:values) of json object [%-string%] in %json%

Examples

#1
set {_json} to json from text "{'A': 'B', 'C': [1,2,3]}"
send json list "C" in {_json}
if json list "C" in {_json} contains 1:
   send true
   
#2
set {_json} to json from text "{'A': 'B', 'C': [1,2,3], 'W': {'some1': 1, 'some2': 2}}"
send values of json object "W" in {_json}

if values of json object "W" contains 1:
   send true

Thank everyone for their support for ideas

Sincerely coffeeRequred.

What's Changed

Full Changelog: 2.8.12...2.8.1