JSON schema to Java

JSON based RESTful web services are increasingly popular, mainly I suspect because it’s lighter than XML and more human. There is an emerging JSON schema specification that allows more formal (and less human) definitions of our message formats. If you’re a fan of code generation, jsonschema2pojo is great little utility (first of its kind I think) that generates Java POJOs from JSON schemata. Then we can use JSON tools such as Jackson for marshaling/unmarshaling.

Perhaps someday this is be integrated in to some WADL to Java implementation?

Comments are closed.