• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Asset - Extension [2.3 compatible] TJSON - better JSON functions!

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
Marketplace: https://marketplace.yoyogames.com/assets/4328/tjson-better-json-functions
Web demo: https://yellowafterlife.itch.io/gamemaker-tjson
Documentation: https://yal.cc/r/17/tjson/
Blog post: https://yal.cc/gamemaker-tjson/
Price: USD 3.99
Modules: All
Versions: GMS1, GMS2

TJSON is an extension for GMS1 and GMS2 that offers an improved set of functions for dealing with JSON.

Advantages include:
  • Automatic memory management - no need to explicitly free the produced structures (more on memory).
  • Type information - easily tell apart data in loaded JSON (more on types)
  • Convenience - if you load a JSON string that has a top-level array, you get an array. If the JSON string is just a numeric value, you get that. No odd maps with "default" values (more on decoding).
  • JS boolean value support - GML uses 1 and 0 as true and false values, so it is impossible to distinguish JSON true/false values in resulting data or produce a true/false value in encoded string. TJSON fixes that (more on boolean values)
The extension is compatible with all modules. Native platforms make extensive use of buffers to maximize performance. JavaScript-based platforms make use of browser's/system's functionality.
 

Attachments

Top