This small library is based (and depends) on the
Jackson core library.
When XML support was included in the JDK, JavaBeans got their
XMLEncoder
and XMLDecoder
.
A similiar feature is still missing with regard to JSON.
This library provides a JsonBeanEncoder
and
JsonBeanDecoder
that can be used to store and
retrieve the properties of JavaBeans (which is, of course, less
comprehensive than the information generated by the
XMLEncoder
for long term storage).
The encoder and decoder also support arrays, collections and maps, so any
mixture of Java “container types” and JavaBeans can be handled. This
includes as a special case a Java object graph that consists only of
arrays, instances of Collection
and instances
of Map
.
Package | Description |
---|---|
org.jdrupes.json |