public abstract class JsonMapFlattener extends Object
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"] }
key.nested=1 another.key[0]=one another.key[1]=two
Copyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.