2

I Have a string res = {"responseCode":"3001","response":"1533352091995"}

how to select only 3001 from json? using asp.net

1 Answer 1

2

Please find below answer:

string jsonData = @"{  
'responseCode':'3001',  
'response':'1533352091995'  
}";  

var details = JObject.Parse(jsonData);  
Console.WriteLine(details["responseCode"]);  

Console.ReadLine(); 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.