public class JsonConverter extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
flatten(String json)
Flatten a json structure to flat key-value pairs.
|
static Map<String,String> |
flatten(String json,
List<String> includes,
List<String> excludes)
Return flattened list of key-value pairs, with includes and excludes applied, it that order.
|
static Map<String,String> |
flatten(String json,
String includesAsCommaSepList,
String excludesAsCommaSepList) |
public static Map<String,String> flatten(String json)
json - a json textpublic static Map<String,String> flatten(String json, List<String> includes, List<String> excludes)
json - a json textincludes - if part of a flattened key, the item is includedexcludes - if part of a flattened key, the item is excluded (after includes are applied)Copyright © 2022 Perfana. All rights reserved.