public class JsonParser extends Object
A parser for a JSON string which produces LSPS objects.
Constructor and Description |
---|
JsonParser() |
Modifier and Type | Method and Description |
---|---|
Object |
parse(String json,
Type resultType,
ExecutionContext ctx)
Parses the JSON string and produces LSPS objects out of it.
|
Object |
parse(String json,
Type resultType,
ExecutionContext ctx,
boolean doInsert,
boolean doUpdate) |
public Object parse(String json, Type resultType, ExecutionContext ctx)
json
- The JSON string.resultType
- The type of the result. If the result is a collection then the type
represents the collection item.ctx
- The execution context in which the objects should be created.public Object parse(String json, Type resultType, ExecutionContext ctx, boolean doInsert, boolean doUpdate)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.