forked from opensci/piflow
repair a bug ,Parameter contains ‘ } ’ , JSON file auto wrap, unable to parse
This commit is contained in:
parent
6541b5d97e
commit
a8d3f45a14
|
@ -256,7 +256,7 @@ object HTTPService extends DefaultJsonProtocol with Directives with SprayJsonSup
|
|||
entity match {
|
||||
case HttpEntity.Strict(_, data) =>{
|
||||
var flowGroupJson = data.utf8String
|
||||
flowGroupJson = flowGroupJson.replaceAll("}","}\n")
|
||||
// flowGroupJson = flowGroupJson.replaceAll("}","}\n")
|
||||
val flowGroupExecution = API.startFlowGroup(flowGroupJson)
|
||||
flowGroupMap += (flowGroupExecution.groupId() -> flowGroupExecution)
|
||||
val result = "{\"flowGroup\":{\"id\":\"" + flowGroupExecution.groupId() + "\"}}"
|
||||
|
|
Loading…
Reference in New Issue