Class JsonMapFlattener
java.lang.Object
org.springframework.vault.support.JsonMapFlattener
Flattens a hierarchical
Result
Map
of objects into a property Map
.
Flattening is particularly useful when representing a JSON object as
Properties
JsonMapFlattener
flattens maps
containing nested
List
, Map
and simple values into a flat representation. The
hierarchical structure is reflected in properties using dot-notation. Nested maps are
considered as sub-documents.
Input:
{"key": {"nested: 1}, "another.key": ["one", "two"] }
Result
key.nested=1 another.key[0]=one another.key[1]=two
- Author:
- Mark Paluch
-
Method Summary