@PermitAll public class JsonFunctionsBean extends Object implements JsonFunctions
Constructor and Description |
---|
JsonFunctionsBean() |
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 json)
Deprecated.
|
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)
Deprecated.
|
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) |
public String toJsonSchema(ExecutionContext context, Boolean useExternalRef, Type type) throws ErrorException
toJsonSchema
in interface JsonFunctions
ErrorException
public String convertToJson(ExecutionContext context, Boolean useExternalRef, Object object) throws ErrorException
JsonFunctions
convertToJson
in interface JsonFunctions
ErrorException
public String convertToJson(ExecutionContext context, Object object) throws ErrorException
JsonFunctions
convertToJson
in interface JsonFunctions
object
- The object to convert to JSON representation. The parameter must be
of RecordType
or ContainerType
or MapType
.ErrorException
@Deprecated public Object parseJson(ExecutionContext context, String json, Type resultType) throws ErrorException
JsonFunctions
type
parseJson
in interface JsonFunctions
json
- the JSON stringErrorException
public Object parseJson(ExecutionContext context, String json, Type resultType, Boolean doInsert, Boolean doUpdate) throws ErrorException
JsonFunctions
parseJson
in interface JsonFunctions
ErrorException
public String mapToJson(ExecutionContext context, Boolean useExternalRef, MapHolder map) throws ErrorException
JsonFunctions
mapToJson
in interface JsonFunctions
map
- The map to convert to JSON. The type of the map has to be
Map<String, Object>
.ErrorException
public String mapToJson(ExecutionContext context, MapHolder map) throws ErrorException
JsonFunctions
mapToJson
in interface JsonFunctions
map
- The map to convert to JSON. The type of the map has to be
Map<String, Object>
.ErrorException
@Deprecated public MapHolder jsonToMap(ExecutionContext context, String json) throws ErrorException
JsonFunctions
jsonToMap
in interface JsonFunctions
ErrorException
public MapHolder jsonToMap(ExecutionContext context, String json, Boolean doInsert, Boolean doUpdate) throws ErrorException
jsonToMap
in interface JsonFunctions
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.