Is JSON validation a best practice?

Is it a best practice to validate JSON?

With both a JSON schema proposal and a JavaScript implementation of a JSON Schema validator, this practice would seem relatively frictionless to implement. So, is it a no-brainer that should be part of any robust application? Or do you employ other preferred strategies to handle bad JSON?


On the server, validation of data coming from outside is a must.

In the browser, it is redundant from a security POV, if you can vouch that the JSON is generated by server code you control and that any data it depends on has been validated on the server. Even so it can still be useful for debugging.

Need Your Help

Using cocoaPods for google AdMob SDK

ios admob cocoapods

Today I was trying to update GoogleAdMob SDK to 6.12, So while reading documentation I found that google recommends to use cocoaPods to manage dependencies.I deleted by previous 6.10 SDK files from...

Can i change the layout of YUI datatable?

layout yui yui-datatable

My web application uses YUI datatables to show records to the user.