Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Spivak
· 7y ago · 0 comments
But what can you do instead? It’s a really hard problem to validate generic JSON without accidentally parsing it.
Comments
[–]
zeroimpl
7y ago
Validation better be done by the parser. Otherwise, subtle differences between the validator and the parser can lead to security flaws. Your solution is to make sure you use a good parser.