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
ErrorException
java.lang.String convertToJson(ExecutionContext context, java.lang.Boolean useExternalRef, java.lang.Object object) throws ErrorException
context
- useExternalRef
- object
- ErrorException
java.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
.ErrorException
java.lang.Object parseJson(ExecutionContext context, java.lang.String json, Type resultType) throws ErrorException
type
context
- json
- the JSON stringresultType
- ErrorException
java.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
- ErrorException
java.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>
.ErrorException
java.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>
.ErrorException
MapHolder jsonToMap(ExecutionContext context, java.lang.String jsonString) throws ErrorException
context
- jsonString
- ErrorException
MapHolder jsonToMap(ExecutionContext context, java.lang.String json, java.lang.Boolean doInsert, java.lang.Boolean doUpdate) throws ErrorException
context
- json
- doInsert
- doUpdate
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.