Posted on: 12/11/2013 9:04:52 PM | Views : 890

I ma redaing the string in this way but it is showing the value, It is not showing the key name like
HttpWebResponse response = (HttpWebResponse)httpWReq.GetResponse(); string responseString = new StreamReader(response.GetResponseStream()).ReadToEnd(); JsonTextReader reader = new JsonTextReader(new StringReader(responseString)); string redirectURL = ""; // probably there is a better way to find the value of the url paramter from the json string. I was just too lazy to figure out - please improve if you know a better way while (reader.Read()) { //if ((reader.Value != null) && (reader.TokenType == JsonToken.PropertyName) && (reader.Value.ToString() == "url")) if ((reader.Value != null) && (reader.TokenType == JsonToken.PropertyName)) { reader.Read(); redirectURL = reader.Value.ToString(); string st = Convert.ToString(reader.TokenType); // break; } }

Go to the complete details ...