News Ticker

JSON Binding 1.0 API: 100DaysOfJavaEE8

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 customization 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 new book Java EE 8: Only What’s New 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.

Leave a Reply

%d bloggers like this: