[jQuery] Re: How to decode Json value through Jquery

2009-01-28 Thread Michael Geary
I believe the other replies have overcomplicated the issue quite a bit. This is your own server you're getting the data from, right? Then you don't need to worry about security. There's nothing to decode, you don't need any plugins, and you don't need to use eval(). Simply use code like this:

[jQuery] Re: How to decode Json value through Jquery

2009-01-28 Thread Mohd.Tareq
jquery encode / decode plugin is available try it hope ur will find solution Regx http://www.prodevtips.com/2008/10/21/jquery-plugin-html-decode-and-encode/ On Wed, Jan 28, 2009 at 5:09 PM, Bluesapphire wrote: > > Hi! >I am novice to Jquery. > Iam getting following Json output from PHP fi

[jQuery] Re: How to decode Json value through Jquery

2009-01-28 Thread Stephan Veigl
If you use AJAX to get your data, take a look at: jQuery.getJSON() http://docs.jquery.com/Ajax/jQuery.getJSON If your JSON data came from another source, suppose your JSON data are stored in a string variable called json, you can simply do: eval("var obj="+json); then the variable obj will hold