public interface JsonFunctions
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToJson(ExecutionContext context,
java.lang.Boolean useExternalRef,
java.lang.Object object)
Creates a JSON document representing a given LSPS object.
|
java.lang.String |
convertToJson(ExecutionContext context,
java.lang.Object object)
Creates a JSON document representing a given LSPS object.
|
MapHolder |
jsonToMap(ExecutionContext context,
java.lang.String jsonString)
TODO
|
MapHolder |
jsonToMap(ExecutionContext context,
java.lang.String json,
java.lang.Boolean doInsert,
java.lang.Boolean doUpdate) |
java.lang.String |
mapToJson(ExecutionContext context,
java.lang.Boolean useExternalRef,
MapHolder map)
Creates a JSON document representing the given map.
|
java.lang.String |
mapToJson(ExecutionContext context,
MapHolder map)
Creates a JSON document representing the given map.
|
java.lang.Object |
parseJson(ExecutionContext context,
java.lang.String json,
Type resultType)
Parses the given JSON document into the instance of the given
type |
java.lang.Object |
parseJson(ExecutionContext context,
java.lang.String json,
Type resultType,
java.lang.Boolean doInsert,
java.lang.Boolean doUpdate)
Parses JSON string to internal data structures.
|
java.lang.String |
toJsonSchema(ExecutionContext context,
java.lang.Boolean useExternalRef,
Type type) |
java.lang.String toJsonSchema(ExecutionContext context, java.lang.Boolean useExternalRef, Type type) throws ErrorException
ErrorExceptionjava.lang.String convertToJson(ExecutionContext context, java.lang.Boolean useExternalRef, java.lang.Object object) throws ErrorException
context - useExternalRef - object - ErrorExceptionjava.lang.String convertToJson(ExecutionContext context, java.lang.Object object) throws ErrorException
context - object - The object to convert to JSON representation. The parameter must be
of RecordType or ContainerType or MapType.ErrorExceptionjava.lang.Object parseJson(ExecutionContext context, java.lang.String json, Type resultType) throws ErrorException
typecontext - json - the JSON stringresultType - ErrorExceptionjava.lang.Object parseJson(ExecutionContext context, java.lang.String json, Type resultType, java.lang.Boolean doInsert, java.lang.Boolean doUpdate) throws ErrorException
context - json - resultType - doInsert - doUpdate - ErrorExceptionjava.lang.String mapToJson(ExecutionContext context, java.lang.Boolean useExternalRef, MapHolder map) throws ErrorException
context - useExternalRef - map - The map to convert to JSON. The type of the map has to be
Map<String, Object>.ErrorExceptionjava.lang.String mapToJson(ExecutionContext context, MapHolder map) throws ErrorException
context - map - The map to convert to JSON. The type of the map has to be
Map<String, Object>.ErrorExceptionMapHolder jsonToMap(ExecutionContext context, java.lang.String jsonString) throws ErrorException
context - jsonString - ErrorExceptionMapHolder jsonToMap(ExecutionContext context, java.lang.String json, java.lang.Boolean doInsert, java.lang.Boolean doUpdate) throws ErrorException
context - json - doInsert - doUpdate - ErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.