Error with json response in REST API - List Forms in Application
While working today on an application, i needed to fetch all the forms in my application, using the
REST API - List Forms in Application to perform some functions on it, then i noticed the json format ruturned - the "display-name" was interchanged for the "component-name".
here is the response in json below:
- {"application-name":["chservicesalesmgt1-ide",{"formList":[{"formCount":20},{"linkid":26,"displayname":"Add_Invoice","componentname":"CheckOut","type":1},{"linkid":27,"displayname":"Add_Discount","componentname":"Add Discount","type":1},...
compared with the xml response below:
- <?xml version="1.0" encoding="UTF-8" ?>
- <response>
- <application name = "chservicesalesmgt1-ide">
- <formlist>
- <formcount>20</formcount>
- <form>
- <displayname><![CDATA[CheckOut]]></displayname>
- <componentname>Add_Invoice</componentname>
- <linkid>26</linkid>
- <type>1</type>
- </form>
- <form>
- <displayname><![CDATA[Add Discount]]></displayname>
- <componentname>Add_Discount</componentname>
- <linkid>27</linkid>
- <type>1</type>
- </form>
- ...