In wcf service i am getting json response in that respone it has more elements but i need to get single element value.How it can be do?
please help me..
I am using one wcf service in that service response,i set the format as Json instead of xml,in the result i am getting
{description:Success,ReturnCode: 0 }
in this result i need to get the value only of success,0...How can i access it?
解决方案You could use JQUERY to extract the elements you want. Rather than go and write an example from scratch, refer to this page, where there is an example of extracting the elements from a twitter tweet JSON response.
You will see the tweet, is passed to a callback function and the element is extracted using tweet.theItem