Forum Discussion

Chris_Phillips's avatar
Chris_Phillips
Icon for Nimbostratus rankNimbostratus
Jul 13, 2015

Will ASM V11+ parse multiple JSON objects in one POST?

Hi,

 

We've a couple of ASM v11 instances that we'd like to send batched JSON data to, but I'm skeptical if it will correctly parse a POST if it contains multiple consecutive JSON objects in the payload. Can anyone confirm in either direction?

 

Thanks

 

Chris

 

2 Replies

  • Hello Chris.

     

    You can have ASM parsing multiple JSON objects in just one POST. you just need your application to send in that POST several parameters and, on their values, the json you need.

     

    You can create all those parameters and manually set the value type to json so ASM will parse all those parameters in the same POST as json.

     

    Best Regards. David Martín

     

  • In that case, i fear ASM will not be able to parse those request as several json objects unless the are assigned a parameter name or the application uses json characters "[" and "]" to build an array of json parameters.

     

    It will depend on the format used by the third party application.

     

    best Regards David Martín