-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
  • 37,241
  • 25
  • 195
  • 267

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,192
  • 1
  • 30
  • 34