-2

How to cut with a regular expression (or С# functions) TEXT MESSAGE in one variable and the second variable USERNAME from this text?

{"messages": [{"text": "TEXT MESSAGE", "channel": "main": "from": "USERNAME", "fromid": 651765, "t": 1379970985409, "tc": "f16d7e "}}}
Cœur
  • 34,719
  • 24
  • 185
  • 251

1 Answers1

1

What you're trying to do is called deserializing. Here's a related SE question:

Deserialize JSON with C#

Community
  • 1
  • 1
System Down
  • 6,102
  • 1
  • 26
  • 32