i am trying to parse Json Array using JSON.net on C#.How can i do it easily?

    [
   {
      "1":[
         "Fax1",
         "Fax2",
         "Fax3"
      ]
   },
   {
      "2":[
         "Voice1",
         "Voice2",
         "Voice3"
      ]
   },
   {
      "3":[
         "IVR1",
         "IVR2",
         "IVR3"
      ]
   }
]
link|improve this question

77% accept rate
4  
What have you tried so far? – StuperUser Aug 17 '11 at 9:38
... and what were the results? – Jon Skeet Aug 17 '11 at 9:39
Have a look at: msdn.microsoft.com/en-us/library/… – FuleSnabel Aug 17 '11 at 9:42
1  
feedback

1 Answer

up vote 4 down vote accepted

Mennago. It looks like you are new over here which can be seen from your points. Did you try google it up? You can use either JavascriptSerializer or you can use Json.Net as Devendra suggested.

This is the link which uses JavascriptSerializer:

Parsing JSON using Json.net

This is Json.Net's site:

http://james.newtonking.com/pages/json-net.aspx

Don't expect that we will directly post a readymade solution for you.

How can i do it easily : Everything is easy if you take the pain and read the docs once.

link|improve this answer
Thanks Anthony, done it using Json.net ! first i tried JavascriptSerializer and it is little complicated,so i said how can i do it easily.Json.net works for me. – Mennano Aug 17 '11 at 10:12
feedback

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.