Home » Tag Archives: JSON

Tag Archives: JSON

Get to Know Custom De/Serializers: JSON Binding Overview Series

The most advanced way to customize JSON Binding is with custom serializers and deserializers. JSON-B serializers and deserializers are the lowest level of customisation available and give access to the JSON Processing parsers and generators. A custom serializer must implement the JsonbSerializer interface and provide logic for the serialise() method. This code shows a simple example of how to customise ...

Read More »

Get to Know Adapters: JSON Binding Overview Series

An adapter configures custom object creation and serialization by implementing the JsonbAdapter interface. The methods adaptToJson() and adaptFromJson() are overwritten with logic that performs the serialization and deserialization operation. The next article is about the most advanced way to customize JSON-B with custom serializers and deserializers. In the example implementation here, the adaptToJson() method has been implemented with code that ...

Read More »

Get to Know Custom Object Creation: JSON Binding Overview Series

Let’s take a look at how JSON Binding handles custom object creation. Next article in this series covers customization of JSON-B with adapters. JSON-B expects all classes to have a public no-argument constructor, which it uses during deserialization to instantiate the target class. Once the instance is created, it is populated with data from the JSON document by calling the appropriate ...

Read More »

Get to Know Customisation: JSON Binding Overview Series

Let’s take a look at how the annotation model and runtime configuration work when customizing the JSON Binding serialization and deserialization processes. Next article in this series covers how JSON-B handles custom object creation. Annotation Method Using the annotation method, it’s possible to customize the default serialization and deserialization behavior by annotating fields, JavaBean methods, and classes. @JsonbNillable @JsonbPropertyOrder(PropertyOrderStrategy.REVERSE) public class ...

Read More »

Get to Know JSON Binding: Overview Series

The Java API for JSON Binding (JSON-B) 1.0 strengthens the Java EE platform’s overall support for the JSON data interchange format. Already, the Java API for JSON Processing (JSON-P) 1.1 has proved popular and together they form the perfect partners that fill a long-standing shortcoming in Java EE’s JSON capacity. Next article in this series covers the customization of JSON ...

Read More »

Get to Know JSON Merge Patch: JSON-P 1.1 Overview Series

Java EE 8 includes an update to the JSON Processing API and brings it up to date with the latest IEFT standards for JSON. They are: JSON Pointer RFC 6901 JSON Patch RFC 6902 JSON Merge Patch RFC 7396 I will cover these topics in this mini-series. Getting Started To get started with JSON-P you will need the following dependencies ...

Read More »

Get to Know JSON Patch: JSON-P 1.1 Overview Series

Java EE 8 includes an update to the JSON Processing API and brings it up to date with the latest IEFT standards for JSON. They are: JSON Pointer RFC 6901 JSON Patch RFC 6902 JSON Merge Patch RFC 7396 I will cover these topics in this mini-series. Getting Started To get started with JSON-P you will need the following dependencies ...

Read More »

Get to Know JSON Pointer: JSON-P 1.1 Overview Series

Java EE 8 includes an update to the JSON Processing API and brings it up to date with the latest IEFT standards for JSON. They are: JSON Pointer (RFC 6901) JSON Patch (RFC 6902) JSON Merge Patch (RFC 7396) I will cover these topics in this mini-series. Getting Started To get started with JSON-P you will need the following dependencies ...

Read More »