© Jeff Friesen 2016

JEFF FRIESEN, Java XML and JSON, 10.1007/978-1-4842-1916-4_8

8. Parsing and Creating JSON Objects with mJson

Jeff Friesen

(1)Dauphin, Manitoba, Canada

Many third-party APIs are available for parsing and creating JSON objects. This chapter explores one of the simplest of these APIs: mJson.

What Is mJson ?

mJson is a small Java-based JSON library for parsing JSON objects into Java objects and vice versa. mJson offers the following features :

  • Single universal type (everything is a Json object; there is no type casting)

  • Methods for creating Json objects

  • Methods for learning about Json objects

  • Methods for navigating Json object hierarchies

  • Methods for modifying Json objects

  • Full support for JSON Schema Draft 4 validation

  • Pluggable factory ...

Get Java XML and JSON now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.