@PermitAll public class JsonFunctionsImpl extends Object implements JsonFunctions
| Constructor and Description |
|---|
JsonFunctionsImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertToJson(ExecutionContext context,
Object object)
Creates a JSON document representing a given LSPS object.
|
MapHolder |
jsonToMap(ExecutionContext context,
String json)
TODO
|
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 |
public String convertToJson(ExecutionContext context, Object object) throws ErrorException
JsonFunctionsconvertToJson in interface JsonFunctionsobject - The object to convert to JSON representation. The parameter must be
of RecordType or ContainerType or MapType.ErrorExceptionpublic Object parseJson(ExecutionContext context, String json, Type resultType) throws ErrorException
JsonFunctionstypeparseJson in interface JsonFunctionsjson - the JSON stringErrorExceptionpublic String mapToJson(ExecutionContext context, MapHolder map) throws ErrorException
JsonFunctionsmapToJson in interface JsonFunctionsmap - The map to convert to JSON. The type of the map has to be
Map<String, Object>.ErrorExceptionpublic MapHolder jsonToMap(ExecutionContext context, String json) throws ErrorException
JsonFunctionsjsonToMap in interface JsonFunctionsErrorExceptionCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.