upvote
Having to provide a complete schema of your json everywhere your json gets parsed negates the advantages of json.
reply
The main advantage of json is that it’s human readable and writable. Beyond that, it has no notion of user created data types so anyone using it has to do custom unmarshalling to get a type apart from sting, number, dict and list.
reply
Most JSON libraries in typed languages require this for data binding to complex types though.
reply
I've been doing this for so long and never knew there was a reviver param, thanks - that is super useful.
reply