-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

1

1 Answer 1

0

Try using

JsonConvert.DeserializeObject(json);
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.