Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Save API callbackHandler

Darius Studdard asked on April 6, 2021

I noticed that your save API has changed in the latest update which has lead to me having to change our application to work with it.  In the result.response property of the callback handler, the response being received from our server is coming back with any quote characters encoded as “"”.  Here’s an example response: {"status":"OK","tempFileName":"myFile.json"}“.
This differs from the previous save API implementation where the server’s response would come back as “{“status”:”OK”,”tempFileName”:”myFile.json”}“. 
I’ve worked around this by updating my code that parses this JSON to replace the &quot encoding like this: “var resultObj = JSON.parse(result.response.replace(/"/g, ‘”‘)); ”  but it is a bit messy/inconvenient.  
Is there any way that this response can be encoded correctly in a future update? Otherwise, I’d suggest updating your documentation to include this difference as it was something I had to discover on my own after debugging.

1 answer

Mykhailo Halaida Mykhailo Halaida Flexmonster April 8, 2021

Hi Darius,
Thank you for reporting this – we’ve reproduced this behavior on our side.
We’ll ensure that the server response is returned with simple quotes – the fix will become available with our upcoming release on ETA May 5th.
Please let us know if there is anything else we can help you with in the meantime.
Best regards,

Please login or Register to Submit Answer