public class JSONParser extends Object
| Constructor and Description |
|---|
JSONParser() |
| Modifier and Type | Method and Description |
|---|---|
static org.imixs.workflow.ItemCollection |
parseWorkitem(InputStream requestBodyStream)
This method parses a json input stream
Example:
{
"item":[
{"name":"$isauthor","value":{"@type":"xs:boolean","$":"true"}},
{"name":"$readaccess","value":{"@type":"xs:string","$":"Anna"}},
{"name":"txtmessage","value":{"@type":"xs:string","$":"worklist"}},
{"name":"txtlog","value":[
{"@type":"xs:string","$":"A"},
{"@type":"xs:string","$":"B"},
{"@type":"xs:string","$":"C"}]
},
{"name":"$activityid","value":{"@type":"xs:int","$":"0"}}
]
}
|
public static final org.imixs.workflow.ItemCollection parseWorkitem(InputStream requestBodyStream) throws ParseException
{
"item":[
{"name":"$isauthor","value":{"@type":"xs:boolean","$":"true"}},
{"name":"$readaccess","value":{"@type":"xs:string","$":"Anna"}},
{"name":"txtmessage","value":{"@type":"xs:string","$":"worklist"}},
{"name":"txtlog","value":[
{"@type":"xs:string","$":"A"},
{"@type":"xs:string","$":"B"},
{"@type":"xs:string","$":"C"}]
},
{"name":"$activityid","value":{"@type":"xs:int","$":"0"}}
]
}
requestBodyStream - ParseExceptionCopyright © 2010–2013 Imixs Software Solutions GmbH. All rights reserved.