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: "value"}, "another.key": ["one", "two"] }
key.nested=value
another.key[0]=one
another.key[1]=two
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
flatten(Map<String,? extends Object> inputMap)
|
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.