repair a bug ,Parameter contains ‘ } ’ , JSON file auto wrap, unable to parse

This commit is contained in:
yanggang 2020-01-16 16:20:54 +08:00
parent 6541b5d97e
commit a8d3f45a14
1 changed files with 1 additions and 1 deletions

View File

@ -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() + "\"}}"