Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-Mason

Implements serialization support for the Mason+Json standard with Jackson and pure Java 11.

Implements a simple wrapper class that will add Mason support to any existing Jackson serializable object.

If you use this and notice some issues, please add an issue here on github.

Notes

RFC3339 Dates

The Mason standard uses RFC3339 dates as times, but there is no support for all the features in Java, so a RFC3339DateUtils class was made to try to provide support for some special cases of them.

This class is an 'attempt' at supporting the special cases of them, but no guarantee that it handles all of them.

Thus, all the dates a are deserialized as strings, and their reading is left for the user.

Implementation

All the serialization is implemented in interfaces that should serialize nicely, no matter the implementation.

However, if the implementing class changes the Jackson annotations present, no support is guaranteed.

Using the implemented Simple classes should work on all kinds of Mason.

Tests

The tests cover all features available and all output seems to be valid.

The tests rely on parsing manually created sample inputs to verify deserialization, and validating serialized structure types so that they conform with the standard.

Still needs some more work on tests. Any help from someone familiar with good unit test would be helpful.

Requires

About

Java serialization (Jackson) utilities for MASON+JSON

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages