All Classes and Interfaces
Class
Description
An Adapter is similar to a
Converter.Various Array utils which do not exist in Java or are performing badly.
Some simple bean introspection methods.
A
BufferedWriter that wraps an OutputStreamWriter and automatically flushes it when flushing its internal buffer.A
Buffered is a source or destination of data that is buffered
before writing or reading.Plugable way to hold various buffers for reading and writing json
Maps a
Class to/from its name.ClassLoader related utils
Convert a given Java Type to it's JSON String representation.
This JsonGenerator will not automatically write a startObject '{' character, but only if needed.
Commonly used methods for diffs
Marker for experimental API.
Display help information on johnzon-maven-plugin.
Call
Call
mvn johnzon:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.Mark an Object to leverage object deduplication without having
to explicitly enable it in the Mapper or JsonB Builder.
Only used during serialization for now.
JsonParser with extended functionality
Base parser which handles higher level operations which are
mixtures of Reader and Parsers like
getObject(), getValue(), getArray()Forces method named as properties to be used as getters (String foo() will match the attribute foo).
When not using -parameters compiler argument, enables to customize parameter names.
Example: @JohnzonVirtualObject(path = {"nested", "nested-again"}, field = { "a", "b" })
will generate {"nested":{"nested-again":{"a":"xxx", "b": "yyy"}}}
Creates a JsonMergePatch as diff between two JsonValues
Create a diff from a source and target JsonStructure
Internal class to easily collect information about the 'depth' of a json object
without having to eagerly construct it.
Enables to not allocate potentially big instances or delay the initialization but ensure it happens only once.
ClassLoader related utils to avoid direct access to our JSON provider from the mapper
Generates mojo bindings from json schema specification(s).
JsonValueParserAdapter<T extends jakarta.json.JsonValue>
Contains internal configuration for all the mapper stuff.
MapperConverter is the common marker interface for all Converters available in Johnzon
Handles writing Json for Objects.
Handles reading Json for Objects.
This class is not concurrently usable as it contains state.
Internal class to suppress
ObjectConverter lookup if and only if
the JsonValue is the same refernece than the lookup was done before.Convert a given Java Type a nested JSON representation.
Deprecated.
use Class.isRecord() once we switch to Java16++
Reads the
type keyword which is either a plain string or - the idiomatic way to declare
a nullable value - an array of strings, ex: "type": ["string", "null"].Constructs short snippets of serialized JSON text representations of
JsonValue instances in a way that is ideal for error messages.