You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jan Bernitt edited this page Jan 25, 2024
·
2 revisions
Warning
The documentation below has not been updated to the newest version
While the actual JsonNode tree is immutable and never changed for any
virtual JsonValue tree layered on top of it the virtual tree can be virtually
transformed. This means looking at the same tree through a lens that maps the
affected level to some other way to look at it. Usually this is used to
"de-objectify" elements or members by mapping to one of their members.
Available view transformations are:
JsonArray#viewAsList: maps all array elements resulting in a list view
JsonList#viewAsList: maps all list elements resulting in a list view
JsonMap#viewAsMap: maps all map members resulting in a map view
JsonObject#viewAsObject: maps all object member values resulting in an
object view
JsonMultiMap#viewAsMultiMap: maps all values of the multimap lists
returning in a multimap view