Click here to Skip to main content
15,895,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 10-Sep-11 2:02am
v3

1 solution

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
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900