Nested Json

I need to make a webservice call with nested jsons in the parameters. Has anyone successfully done it? I tried using a!toJson within another a!toJson with no success.

 

 a!toJson( {"name":"Document C", "type": a!toJson({"fields": a!toJson({"name":"Bob","type":"identification", "subtype":"FULLNAME"}), "role":"user", "id":"xxx"}), "id":"xxxxx", "extract":true})

result:

"{"name":"Document C","type":"{\"fields\":\"{\\\"name\\\":\\\"Bob\\\",\\\"type\\\":\\\"identification\\\",\\\"subtype\\\":\\\"FULLNAME\\\"}\",\"role\":\"user\",\"id\":\"xxx\"}","id":"xxxxx","extract":true}"

The "\"s are showstoppers. 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data