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