JSON serialization and deserialization

BlitzMax Forums/BlitzMax Programming/JSON serialization and deserialization

Pineapple(Posted 2015) [#1]
Just bringing to attention this archive entry: http://www.blitzmax.com/codearcs/codearcs.php?code=3175

It's pretty awesome. You can serialize arbitrary objects as json then deserialize that json to get the object back again. Using field metadata you can also specify things like excluded fields and what class to deserialize contents of containers like TList and TMap as. It's also easy to implement handlers for containers or other objects that can be stored more effectively than the default consideration of recursive field/value pairs in a dict.