Data forwarding API's - output is in XML not JSON?

12 views
Skip to first unread message

CommCare N00b

unread,
Sep 7, 2017, 8:01:00 AM9/7/17
to CommCare Developers
According to these documents: https://confluence.dimagi.com/display/commcarepublic/Data+Forwarding the output of this url: https://www.commcarehq.org/a/crs-test/api/v0.4/data-forwarding/ should be JSON but I get XML instead? 

Danny Roberts

unread,
Sep 7, 2017, 10:10:42 AM9/7/17
to CommCare Developers
The examples there are for the json format. Following the pattern of many of our APIs you can specify the JSON format by adding "?format=json" to the end of the URL. I've added that to the documentation you linked to (https://confluence.dimagi.com/display/commcarepublic/Data+Forwarding).

Cheers,
Danny

On Thu, Sep 7, 2017 at 8:00 AM, CommCare N00b <ognen.p...@gmail.com> wrote:
According to these documents: https://confluence.dimagi.com/display/commcarepublic/Data+Forwarding the output of this url: https://www.commcarehq.org/a/crs-test/api/v0.4/data-forwarding/ should be JSON but I get XML instead? 

--

---
You received this message because you are subscribed to the Google Groups "CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-developers+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages