Dear visitor, despite all the challenges, our team continues operating at full speed.

We are ready to help with any questions you may have. Please fill out this quick form and we'll get back to you.

Fill the form
Get Free Trial

Get json report in string format

Resolved
guest asked on December 22, 2016

Hi,
How could I get the json report in string format? Before, to get the xml I could use: pivot.getReport(‘xmlString’). Thank you, I looked at the documentation and wasn’t able to find the answer.

1 answer

Public
Dmytro Zvazhii Flexmonster December 22, 2016

Hello,
Thank you for your question. We can suggest you using the pivot.getRport(); API call which will return you the JSON object and then using JSON.stringify() which will turn the object into a string. You can combine it as following:
var reportString = JSON.stringify(pivot.getReport(), null, '\t');
Please let us know if it works for you.
Regards,
Dmytro.

Please login or Register to Submit Answer