Forums » .NET » XML »

The name 'JsonConvert' does not exist in the current context


Posted Date: 01 Jun 2011      Posted By:: Smitha     Member Level: Silver    Member Rank: 1102     Points: 2   Responses: 2



HI

what should this error mean and how do I fix it
The name 'JsonConvert' does not exist in the current context

XmlDocument doc = (XmlDocument)JsonConvert.DeserializeXmlNode(json,"root");
objBLL.insert_XMLEducation(doc, Convert.ToInt64(ui.id));

Thanks
Smitha




Responses

#611683    Author: Anil Kumar Pandey      Member Level: Diamond      Member Rank: 1     Date: 01/Jun/2011   Rating: 2 out of 52 out of 5     Points: 2

You need to add the name space in the application to use the JASON service. The name space is.


using Newtonsoft.Json;


or the other DLL you are using.

Thanks & Regards
Anil Kumar Pandey
Microsoft MVP, DNS MVM


 
#611800    Author: Kalidasu Surada      Member Level: Silver      Member Rank: 1382     Date: 01/Jun/2011   Rating: 2 out of 52 out of 5     Points: 0

Hi,

Please find the below link that will help you.

http://james.newtonking.com/projects/json/help/html/T_Newtonsoft_Json_JsonConvert.htm

Thanks,
-Kalidasu.


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Return to Discussion Forum
Start new thread

Subscribe to Subscribers
Awards & Gifts
Talk to Webmaster Tony John

Online Members

Ameer Ali
More...
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India