GameMaker Studio 2 (2.0 - 2.2.x)
Icon

JSON Toolkit

FrostyCat

You must be logged in to obtain assets

Description

Overview

JSON Toolkit is a set of companion scripts facilitating the use of GML's built in json_encode() and json_decode() functions. It contains utilities for visually building JSON structure, accessing and manipulating deeply nested values, iterating through a JSON structure, and saving/loading JSON data in files. With JSON Toolkit, many common JSON operations that would otherwise take several lines, intermediate values and repetitions in conventional GML can be shortened into concise, easy-to-read one-liners.

Documentation

See the Wiki section on the official GitHub repository.

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 1.1.1. Published March 26, 2020

This release adds functions for RC4-encrypted JSON.

  • json_encrypt(jsonstruct, key): Encode to JSON using json_encode(), then encrypt the result using the given key and return the resulting string.
  • json_decrypt(jsonencstr, key): Decode the encrypted JSON string using the given key, then decode the result using json_decode() and return the final JSON structure.
  • json_load_encrypted(fname, key): Load the given file name, decrypt with the given key and decode it, then return a JSON structure.
  • json_save_encrypted(fname, jsonstruct, key): Encode the given JSON structure and encrypt the result with the given key, then save it in the given file name.
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top