Class Json5


public class Json5 extends CharMarshaller
A pairing of a Json5Serializer and JsonParser into a single class with convenience read/write methods.

The general idea is to combine a single serializer and parser inside a simplified API for reading and writing POJOs.

Examples:

// Using instance. Json5 json = new Json5(); MyPojo myPojo = json.read(string, MyPojo.class); String string = json.write(myPojo);

// Using DEFAULT instance. MyPojo myPojo = Json5.DEFAULT.read(string, MyPojo.class); String string = Json5.DEFAULT.write(myPojo);

See Also: