Monday Mar 25, 2013

Getting Started with JSON-P

As the Java EE 7 release date draws closer, blogs and articles covering the new features are beginning to roll in. In a brief blog entry, Markus Eisele, a key independent member of the Java EE community talks about getting started with JSON-P. As you know, JSON-P (more accurately, the Java API for JSON Processing) is a key new API being added to Java EE 7. JSON-P is a foundational API to enable developers to parse, generate, transform and query JSON, particularly in JAX-RS and WebSocket powered next-generation HTML 5 applications. Developers can expect a higher level declarative JSON binding API (in a similar vein to JAXB vs. JAXP) with Java EE 7. For now, there are non-standard options like MOXy and Jackson. In the blog entry, Markus discusses integrating JSON-P with JAX-RS, creating JSON content and parsing JSON.

For those unaware, JSON-P is now in the proposed final draft stage. Do feel free to download the draft and take a look at it yourself.