Importing JSON Data as Structs and Arrays in GameMaker 2.3.1 [read 2.3.2 note for update] @SamSpadeGameDev
Importing JSON Data as Structs and Arrays in GameMaker 2.3.1 [read 2.3.2 note for update]  @SamSpadeGameDev
Uploaded December 2020 | Updated December 2026, 3 hours ago
In 2.3.1 we can now import JSON data as structs and arrays in GameMaker! Here's how. IMPORTANT NOTE: in 2.3.2 null values are now imported as a null pointer instead of simply being deleted.

Support me on Patreon!
patreon.com/samspadegamedev

Outline
0:00 JSON Data as Structs and Arrays
0:29 Translating JSON Data
0:56 What does the data become?
1:38 No More Memory Leaks!
1:59 Steps to Import
2:54 Code Example
4:30 Basic Importing (JSON Data with no line breaks)
5:29 Using a Custom Function to Import
7:02 An Important difference between parse and decode
8:49 How to Follow Along
9:08 Summary

Links:
manual.yoyogames.com/GameMaker_Language/GML_Reference/File_Handling/Encoding_And_Hashing/json_parse.htm
manual.yoyogames.com/GameMaker_Language/GML_Reference/File_Handling/Encoding_And_Hashing/json_decode.htm


#GameMaker
#JSON
#GML
Importing JSON Data as Structs and Arrays in GameMaker 2.3.1 [read 2.3.2 note for update][incomplete in 2.3] Data Structures Introduction Part 1 [GameMaker Studio 2]Event Order [GameMaker Studio 2]Getting More out of TutorialsFor Loops Basics [GameMaker Studio 2]You are the Programmer [GameMaker Studio 2]While and Do...Until [GameMaker Studio 2]With Statement [GameMaker Studio 2]JSON and GameMaker Studio 2Built-in Alarms [GameMaker Studio 2.3]Shooty Shooty Dodge Dodge TrailerUsing ChatGPT-4 to Make a Game with GameMaker
SamSpadeGameDev |

Importing JSON Data as Structs and Arrays in GameMaker 2.3.1 [read 2.3.2 note for update]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER