News Ticker

JSON Binding 1.0 API: 100DaysOfJavaEE8

100 Days Of Java EE 8: Solution

JSON-B 1.0 Challenge

JSON Binding allows fine grain control over the format of the JSON document. Given an instance of the Book class and the JSON Binding code, which JSON document is produced?

JSON-B

Answer

The JSON document produced is 1.

The JSON Binding API provides excellent customisation options the allow the default behavior to be configured to suit your use case scenario.

Further Reading

For further information on how to use the new JSON Binding API take a look at my article What’s new in Java EE 8 over at IBM developerWorks and also you should read the specifications for the Java API for JSON Binding (JSR 367).

GitHub Repository

The code from this and all other #100DaysOfJavaEE8 can be found in my GitHub repository.

The Original Tweet

Leave a Reply

%d bloggers like this: