Monday, June 1, 2009

[jQuery] Re: json indexing not working for me

I wish I could tell you.. I don't have any way of dumping the return json results.
but I do know if I do a json.member I get a valid object
but json.member.name is invalid?

it would seem that this is the reason its not working but why?

server side:
<?php
$arr = $_GET;
$myjson = json_encode($arr);
echo $myjson;
?>

On Tue, Jun 2, 2009 at 7:55 AM, Steven Yang <kenshin520@gmail.com> wrote:
json is the data passed back from the server
does the data passed back from server look like

{
"member" : 
{
"name" : "some name"
}
}
?

or are u just trying to access your "data"?



--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com

No comments: