JSON Toolkit is a set of companion scripts facilitating the use of GML's built in
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.
See the Wiki section on the official GitHub repository.
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.