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
  • 489,969
  • 99
  • 883
  • 1,009
ankur
  • 4,565
  • 14
  • 64
  • 100

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
  • 29,157
  • 6
  • 68
  • 77