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.
Recently, a new version was released. Let's see what's inside!
- 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.
- Provides API support with offset content.
- Provides XCO object serialization and deserialization support.
- Provide support for extended configuration files.
Let's check how to use it with code for some basic stuff.
Add the dependency.
<dependency> <groupId>org.xson</groupId> <artifactId>xson</artifactId> <version>1.0.2</version> </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.