Loading ...
Sorry, an error occurred while loading the content.

847Re: [json] Re: [question] parse json with ajax

Expand Messages
  • Michal Migurski
    Aug 15, 2007
      On Aug 14, 2007, at 11:34 PM, genzoeri wrote:
      > I will use this for my AJAX. Using responsetext properties from XHR.
      > :) ok,then how to parse, {"depth1":{"depth2":{"depth3":"content"}}} ??
      > btw, thank you for your response. I am glad, I am on the right place.

      This should help:
      eval("var responsejson = (" + responsetext + ");");
      alert(responsejson['depth1']['depth2']['depth3'];



      On Aug 14, 2007, at 11:58 PM, Mark Ireland wrote:
      > Key names must be quoted and cant start with a number?Is that right?

      Yes.

      -mike.

      ----------------------------------------------------------------
      michal migurski- contact info and pgp key:
      sf/ca http://mike.teczno.com/contact.html
    • Show all 7 messages in this topic