0

I try the all Json parse example but they don't work.

Do anyone have a proper example Json parsing from web link for Windows Phone 8 ?

Please help me...

2 Answers2

0

1) Generate class for json object (Online JSON class generator)

2) Call link and download data.

3) Parse data using JsonConvert or other class.( Samples )

Here is a sample:

http://smallandmighty.net/blog/using-json-with-windows-phone

Community
  • 1
  • 1
Norbert Pisz
  • 3,392
  • 3
  • 27
  • 42
0

Personally I prefer Json.NET. It is light-weight and relatively easy, especially if you read through the documentation. It is hard to answer the 'how to parse' considering there are different scenarios to consider. The resource #1 that Norbert posted I think is helpful and something I am going to use now that i know about it considering creating the classes is usually the longest and most monotonous part.

lucasbrendel
  • 506
  • 4
  • 18
  • There isn't any sample for parsing from web link. Do you any sample that parse Json from web link ? – kemalserkanyildirim Jan 14 '13 at 17:40
  • Can you post an example of what you are trying to parse? I am confused as to what you mean by "from weblink". I am not an expert at JSON but i think there is some confusion as to what you are trying to accomplish. – lucasbrendel Jan 14 '13 at 18:49
  • I send you an e-mail. With my code sample and web link to parse. – kemalserkanyildirim Jan 18 '13 at 08:26
  • did you get the e-mail. I try every way to parse Json from link. Please help me. – kemalserkanyildirim Jan 21 '13 at 12:38
  • Yes I got it. sorry for the delay. Where did your error occur? Which line? Like I mentioned earlier maybe post your code here so others can see? I am not a Json expert so i am not really sure what is causing the error. Sorry. – lucasbrendel Jan 24 '13 at 04:25
  • Inside the DownloadStringCompleted but now I dont remember. e.Result maybe. – kemalserkanyildirim Jan 24 '13 at 08:02
  • While reading link with WebClient, it gets the Html tag. So without cleaning Html tag Json parser not parse. Before parse with Json parser I cleaned the Html tag then parse with Json parser. string str = e.Result.Replace("", ""); str = str.Replace("", ""); str = str.Replace("", ""); I clean the Html tag with this code. Now I can parse the my web link. – kemalserkanyildirim Jan 25 '13 at 13:54