Hacker News
new
past
comments
ask
show
jobs
points
by
flyingmeteor
4 hours ago
|
comments
by
Bratmon
3 hours ago
|
next
[-]
Having to provide a complete schema of your json everywhere your json gets parsed negates the advantages of json.
reply
by
true_religion
1 hours ago
|
parent
|
next
[-]
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
by
hueho
1 hours ago
|
parent
|
prev
|
[-]
Most JSON libraries in typed languages require this for data binding to complex types though.
reply
by
cyral
4 hours ago
|
prev
|
[-]
I've been doing this for so long and never knew there was a reviver param, thanks - that is super useful.
reply