Answered by:
How to get splist data in Json formate

Question
-
Dear Team,
How to get splist data in Json formate.Cusatom lists also
prboss
- Edited by prboss118 Monday, January 7, 2013 1:59 PM
Monday, January 7, 2013 1:59 PM
Answers
-
You have to combine two things: getting list items with WebService (http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems(v=office.12).aspx) from WS you get XmlNode with data.
and JSONConvertor method with process XmlDocument and generates json string (http://www.codepursuit.com/?p=375)
Please let me know if my post was helpful.
- Proposed as answer by Hemendra Agrawal Tuesday, January 8, 2013 9:53 AM
- Marked as answer by Bjoern H Rapp Saturday, January 12, 2013 5:25 PM
Monday, January 7, 2013 3:44 PM -
Hi,
In addition to Radovan reply, here is blog to get list item in jason format using webservice:
Hope it could help
Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
Whenever you see a reply and if you think is helpful, click "
Vote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "
Mark As Answer
- Marked as answer by Bjoern H Rapp Saturday, January 12, 2013 5:25 PM
Tuesday, January 8, 2013 9:53 AM
All replies
-
Hi,
try this blogpost: Well Formatted XML Data From SharePoint List
or: SharePoint List to JSON
Best regards,
RadovanPlease let me know if my post was helpful.
Monday, January 7, 2013 2:03 PM -
Hi thank you for this.
Is there any possibilites to access the splist JSON data using webservices
for custom lists also
prboss
Monday, January 7, 2013 3:20 PM -
You have to combine two things: getting list items with WebService (http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems(v=office.12).aspx) from WS you get XmlNode with data.
and JSONConvertor method with process XmlDocument and generates json string (http://www.codepursuit.com/?p=375)
Please let me know if my post was helpful.
- Proposed as answer by Hemendra Agrawal Tuesday, January 8, 2013 9:53 AM
- Marked as answer by Bjoern H Rapp Saturday, January 12, 2013 5:25 PM
Monday, January 7, 2013 3:44 PM -
Hi,
In addition to Radovan reply, here is blog to get list item in jason format using webservice:
Hope it could help
Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
Whenever you see a reply and if you think is helpful, click "
Vote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "
Mark As Answer
- Marked as answer by Bjoern H Rapp Saturday, January 12, 2013 5:25 PM
Tuesday, January 8, 2013 9:53 AM