What is Java XSON?

Overview of high-performance Java serialization framework
11 August

XSON is a Java object serialization and deserialization framework. It supports the serialization of Java objects into byte arrays and deserialization from byte arrays to Java objects. 

XSOM Scheme
XSOM Scheme

Recently, a new version was released. Let's see what's inside!

  1. The new buffer package, the relevant class in this package, provides the allocation of the byte [] in the process of distribution, use, recycling management; further providing serialization speed and reducing the Full GC.
  2. Provides API support with offset content.
  3. Provides XCO object serialization and deserialization support.
  4. Provide support for extended configuration files.

Let's check how to use it with code for some basic stuff.

Add the dependency.



User user = new User();
// set...
byte[] data = XSON.encode(user);


// byte[] data
User user = XSON.decode(data);

Serialization and deserialization with offset content

int x = 6;
User user = new User();
// set...
byte[] data = XSON.encode(x, user);
// byte[] data
User user = XSON.decode(x, data);

Learn more about XSON at GitHub or official website

JDK 9 Hidden Gems

Mikael Vidstedt and Sandhya Viswanathan talk about JDK 9 optimizations spanning support for larger vectors
01 November

What does JDK 9 mean to you? Modularization is the first thing that comes to mind, but there is a lot more. Come discover less-well-known but important technologies that Oracle has been working on with partners such as Intel to provide a higher-performance, lower-footprint, scalable Java with JDK 9.

This session talks about JDK 9 optimizations spanning support for larger vectors with enhanced vectorization, optimized math libraries, cryptography and compression acceleration, compact strings, new APIs with associated optimized implementation, and many more features that help big data, cloud, microservices, HPC, and FSI applications.

Speakers are:

  • Mikael Vidstedt, JVM Architect, Oracle
  • Sandhya Viswanathan, Senior Staff Software Engineer, Intel Corporation