1

I am currently facing an issue that i have json string which have some properties lets say

[
    {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"},
    {"ircEvent": "PRIVMSG", "method": "deleteURI", "regex": "^delete.*"},
    {"ircEvent": "PRIVMSG", "method": "randomURI", "regex": "^random.*"}
]

Now I have to convert this value into some object through which I can iterate and pass it to my business logic.

How can I achieve that?

Oded
  • 477,625
  • 97
  • 867
  • 998
ankur
  • 4,224
  • 14
  • 59
  • 96

1 Answers1

2

Server side to strongly-typed objects: Parse JSON in C#

Server side to dynamics: Deserialize JSON into C# dynamic object?

Client side (with jQuery): http://api.jquery.com/jQuery.parseJSON/

Community
  • 1
  • 1
Samich
  • 28,257
  • 5
  • 65
  • 76