Hi,
I have a requirement to consume Odata response and display results in SharePoint 2010 webpart.
We are getting ODATA response from SAPNetWeaverGateway service. But, Key and values have to be dynamic. Meaning today service may return 5 fields. But, if next month they add additional fields in SAP, it might return 10 fields. In such cases, I don’t want to change my code. I am going to display key value pairs in following format:
Employee ID :- 10101
We have flexibility to ask service to return data in JSON format or ATOM format whichever we want.
I was trying to parse JSON with the help of following link
But, it needs custom ListItemCollectionConverter class and the one already present at below is not working for me
http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptconverter(v=vs.90).aspx
There is also one system.dynamic namespace for parsing data dynamically but that is available in SharePoint 2013 only.
Are there ATOM/JSON parsers which can help me parse data dynamically?
Can someone please provide help?
Thanks,
Mayuri
