Package org.eclipse.ditto.json


Ditto JSON is a general purpose JSON library. This package provides the corresponding interfaces as well as implementations. There is one central place for obtaining instances of the various interfaces: JsonFactory. JsonFactory provides only static methods which means that they can be imported statically and by thus make calls concise to assist the readability of your code.

Please note that Ditto JSON is designed for immutability. Therefore each object returned by JsonFactory - apart from builders - is immutable and thus thread safe. If interfaces provide methods for altering an object then invoking this method does not change the state of that object but a new object with the altered state is returned instead. This is the same behavior like it is shown by java.lang.String for example.