How to json parsing in windows phone ,,
thanks
Json parsing in windows phone 7
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Chintan RathodRank #516 · 4.8K reputationPosted Mar 5, 2013, 7:21 AM EST
private void ParseJson()
{
var jsonString =
"{\"responseData\": {\"translatedText\":\"??? ???\"}, \"responseDetails\": null,\"responseStatus\": 200}";
RootObject jsonObject = JsonConvert.DeserializeObject
MessageBox.Show(jsonObject.responseData.translatedText);
}
//This class was generated with json2csharp
public class ResponseData
{
public string translatedText { get; set; }
}
//This class was generated with json2csharp
public class RootObject
{
public ResponseData responseData { get; set; }
public object responseDetails { get; set; }
public int responseStatus { get; set; }
}
Following links may help you to learn.
1) http://msdn.microsoft.com/en-us/library/ie/cc836466%28v=vs.94%29.aspx
2) http://upadhyayjitesh.blogspot.in/2012/12/windows-phone-json-parsing-example-part.html
3) http://nkishorchandra.blogspot.in/2012/10/parsing-json-in-windows-phone.html