-2

i have json string as following

string json = "{\"ID\":\"hid\",\"Specification\":\"hname\"}";

but i want to read Id and hname as following string hid = hardwareidTextbox.Text; string hname = hardwarename_Textbox.Text; how do i read variable vales in JSON string

Tibrogargan
  • 4,508
  • 3
  • 19
  • 38
IoT Information
  • 125
  • 1
  • 2
  • 5
  • 2
    See [Parse Json string in C#](https://stackoverflow.com/questions/12676746/parse-json-string-in-c-sharp). – dbc Oct 24 '16 at 04:43

1 Answers1

0

Try using

JsonConvert.DeserializeObject(json);
A3006
  • 1,051
  • 1
  • 11
  • 28