public class InputConverter extends Object
| Constructor and Description |
|---|
InputConverter() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.gson.JsonObject |
flatten(com.google.gson.JsonElement element)
Returns flattened json object.
|
static void |
flatten(com.google.gson.JsonElement object,
String prefix,
com.google.gson.JsonObject parent) |
static com.google.gson.JsonObject |
flatten(String json)
Returns flattened json object.
|
static com.google.gson.JsonObject |
unflatten(com.google.gson.JsonElement element)
Returns unflattened json object.
|
static com.google.gson.JsonObject |
unflatten(com.google.gson.JsonElement element,
String[] excludeFields)
Returns unflattened json object which has
excludeFields flattened |
static com.google.gson.JsonObject |
unflatten(String json)
Returns unflattened json object.
|
static void |
unflatten(String[] parts,
String value,
com.google.gson.JsonObject parent) |
static com.google.gson.JsonObject |
unflatten(String json,
String[] excludeFields)
Returns unflattened json object which has
excludeFields flattened |
static void |
unflattenRaw(String[] parts,
com.google.gson.JsonElement value,
com.google.gson.JsonObject parent,
String[] excludeFields,
boolean recursive) |
public static com.google.gson.JsonObject unflatten(String json) throws DataModelException
json - input json stringDataModelExceptionpublic static com.google.gson.JsonObject unflatten(String json, String[] excludeFields) throws DataModelException
excludeFields flattenedjson - input json stringexcludeFields - fields to excludeDataModelExceptionpublic static com.google.gson.JsonObject unflatten(com.google.gson.JsonElement element)
throws DataModelException
element - input json elementDataModelExceptionpublic static com.google.gson.JsonObject unflatten(com.google.gson.JsonElement element,
String[] excludeFields)
throws DataModelException
excludeFields flattenedelement - input json elementexcludeFields - fields to excludeDataModelExceptionpublic static void unflatten(String[] parts, String value, com.google.gson.JsonObject parent) throws DataModelException
DataModelExceptionpublic static void unflattenRaw(String[] parts, com.google.gson.JsonElement value, com.google.gson.JsonObject parent, String[] excludeFields, boolean recursive) throws DataModelException
DataModelExceptionpublic static com.google.gson.JsonObject flatten(String json)
json - input json stringpublic static com.google.gson.JsonObject flatten(com.google.gson.JsonElement element)
element - input json elementpublic static void flatten(com.google.gson.JsonElement object,
String prefix,
com.google.gson.JsonObject parent)
Copyright © 2017 BitSensor. All rights reserved.