F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Torti's avatar
Torti
Icon for Cirrus rankCirrus
Jun 01, 2015

json attachment problem - multipart content

Hi, is there someone, who successfully run json requests with attachments through ASM (>= 11.5) without a "malformed json data" violation?

 

we allways get a the violation because of a '-' (minus).

 

The description is "Malformed document - Illegal character encountered - json syntax error" The problem is, there is no '-' in the message itself, it exist only in the encapsulation boundary.

 

I want to ask here, before I open a case.

 

Thx

 

3 Replies

  • It is difficult to say what the problem is without seeing the actual request.

     

    I have seen a similar issue once, but the problem was with the application - it was indeed using invalid JSON sysntax due to a issue with a JQuery lirary.

     

    A good idea is to check the syntax of JSON request here: http://jsonlint.com

     

  • nice, multipart requests are not supported for JSON.

     

    Again, It looks like we are the only company in the world, who is using this feature :-D

     

    So, how do it the rest of the world?