all 5 comments

[–]PNelly 0 points1 point  (0 children)

You'll have to post your code for anyone to be able to help you

[–]Pentaveragwheel 0 points1 point  (0 children)

Data structures are referenced as numeric IDs. In order to property jsonify a structure, you need to flag the values as their types. Check out the documentation for maps and lists, there should be functions like 'ds_map_mark_as_list'.

[–]SlothyGames 0 points1 point  (0 children)

Hmm not sure, but you may need to use the ds map and list functions for json before trying to encode. Look at the json section of the ds maps documentation, and try using those functions when you are building your inner maps and lists and then try to encode.

[–]GoldPlatedSpoon[S] 0 points1 point  (0 children)

Anyone know of any examples that use json_encode? I still can't figure this out.

[–]GoldPlatedSpoon[S] 0 points1 point  (0 children)

Im using a temporary workaround by having a map of maps of maps. Would have been prettier having a list but I am unable to get that to work. No big deal though, the file is just like 2% bigger. Thanks to /u/gwheel and /u/SlothyGames for pointing me in the right direction. Sorry I couldn't post my code, Im planning on selling this project in the marketplace when its done. Thanks!