☮️
Skript-gson
  • skript-gson
  • Welcome
  • Foundations
    • 📝Syntaxes
      • 🔴Conditions
      • 🔵Effects
      • 🟢Expressions
      • 🟠Types
    • Printing
    • Creating
    • Deserialization
    • Serialization
  • About
Powered by GitBook
On this page

Was this helpful?

  1. Foundations

Deserialization

Official docs of Skript-gson

Examples of data deserialization

Allows you to convert list-data back to JsonElement (Json)

The variable can be named anything, it's up to you

Getting data from a file:

on load:
    map json from (new json from file "plugins/YourAwesome/test.json") to {_json::*}
    set {_e} to {_json::*}'s form

The variable can be named anything, it's up to you

on load:
    set {_example::myData} to json {"some": false}
    broadcast {_e::*}'s form
PreviousCreatingNextSerialization

Last updated 2 years ago

Was this helpful?