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

Re: JSON text not parsing on FireFox

Expand Messages
  • keelypavan
    Ashwin, ... You directly have Javascript statement for object and there was no need for eval ing it. That was Doug s point. Pavan Keely
    Message 1 of 11 , Jun 15, 2006
    • 0 Attachment
      Ashwin,

      This confusion came up because in the sample code you provided:

      > myJSONtext = {user: {errorFirstName:"", errorLastName:"",
      > errorEmail:"The email address you entered is not valid." } };

      You directly have Javascript statement for object and there was no
      need for 'eval'ing it. That was Doug's point.

      Pavan Keely

      --- In json@yahoogroups.com, "Matthew Morley" <WickedLogic@...> wrote:
      >
      > Perhaps he is asking why you aren't using:
      >
      > http://json.org/json.js
      > -----------------------------------------------------
      > string.parseJSON()
      >
      > This method parses a JSON text to produce an object or
      > array. It will return false if there is an error.
      > --
      > Matt (MPCM)
      >
    • Ashwin Prabhu
      Hey Guys, Thanks very much for all the clarifications. i think, i know what i was doing wrong. As for parseJSON, yup i will using that. Thanks again! -
      Message 2 of 11 , Jun 16, 2006
      • 0 Attachment
        Hey Guys,

        Thanks very much for all the clarifications. i think, i know what i
        was doing wrong.
        As for parseJSON, yup i will using that.

        Thanks again!

        - Ashwin

        On Jun 15, 2006, at 12:08 PM, keelypavan wrote:

        > Ashwin,
        >
        > This confusion came up because in the sample code you provided:
        >
        >> myJSONtext = {user: {errorFirstName:"", errorLastName:"",
        >> errorEmail:"The email address you entered is not valid." } };
        >
        > You directly have Javascript statement for object and there was no
        > need for 'eval'ing it. That was Doug's point.
        >
        > Pavan Keely
        >
        > --- In json@yahoogroups.com, "Matthew Morley" <WickedLogic@...> wrote:
        >>
        >> Perhaps he is asking why you aren't using:
        >>
        >> http://json.org/json.js
        >> -----------------------------------------------------
        >> string.parseJSON()
        >>
        >> This method parses a JSON text to produce an object or
        >> array. It will return false if there is an error.
        >> --
        >> Matt (MPCM)
        >>
        >
        >
        >
        >
        >
        >
        >
        > ------------------------ Yahoo! Groups Sponsor --------------------
        > ~-->
        > Great things are happening at Yahoo! Groups. See the new email
        > design.
        > http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/1U_rlB/TM
        > --------------------------------------------------------------------
        > ~->
        >
        >
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.