Closed tmarrs closed 9 years ago
This has me interested and asking questions. Why schemas in JSON? Is that popular? What do the nay-sayers say? Is this XSD all over again?
Just prodding. Very interested.
Matthew JSON Schema is absolutely necessary whenever you cross an organizational boundary, whether it's intra-enterprise or inter-enterprise because it validates the semantic meaning of a document: Are all the required elements there? Are the dates in the agreed-upon format? Is the value within an acceptable range (e.g., an enum)? Consider an Order Processing system. Without a schema, you have to sift through and check each data element to see if it's there, if it follows all the rules. With a schema, you feed in the schema and the document, and you're done. Boolean - True/False. Very simple and clean.
Furthermore: OWASP (Open Web Application Security Project) suggests that for RESTful services that you restrict data to what's expected. JSON Schema is much simpler than XSD. There are a lot of excellent tools that support it. As you can tell, I'm passionate about this topic, and I could arrange a smack down if you'd like. :-)
Thanks.
Tom
Tom Marrs thomasamarrs@comcast.net http://www.linkedin.com/in/tommarrs http://www.facebook.com/thomasamarrs http://twitter.com/TomMarrs 303-547-5415
On Mar 7, 2013, at 4:04 PM, Matthew McCullough notifications@github.com wrote:
This has me interested and asking questions. Why schemas in JSON? Is that popular? What do the nay-sayers say? Is this XSD all over again?
Just prodding. Very interested.
— Reply to this email directly or view it on GitHub.
JSON is more than just a simple replacement for XML when you make an AJAX call. All modern languages have excellent JSON API support. You’re already using JSON, and you may be thinking: • What else is there to talk about? • What APIs are available, and why do they matter? • How do I leverage these APIs to improve my applications? • What is JSON Schema and when/how do I use it?
In this presentation, we’ll cover:
JSON APIs • JSON in HTML5 & JavaScript • JSON in Ruby on Rails • JSON in Java
JSON Schema • Schema Overview • Schema in detail • Validation with JavaScript, Ruby, and Java • Documenting your Schema
Attendees will learn how to leverage JSON APIs and JSON Schema to enhance their architecture and development efforts.