Welcome Developers!

in

Welcome!

in

gadgets.json.parse safari bug

Last post 12-02-2008 12:11 AM by Chris Cole. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-28-2008 3:39 PM

    • rob
    • Not Ranked
    • Joined on 02-25-2008
    • Posts 4

    gadgets.json.parse safari bug

    In safari 3/pc, if i try to run gadgets.json.parse() on a string larger than 40kb, i get a return value of 'false'. If i run eval() on the same string, it returns the json object like it should. In ie/firefox, i don't see this problem at all.

     

    is this a safari issue?  google gadgets/opensocial issue?  myspace? 

     

    thanks! 

  • 06-02-2008 12:55 AM In reply to

    Re: gadgets.json.parse safari bug

     I'll look into this in the AM

     

  • 12-02-2008 12:11 AM In reply to

    Re: gadgets.json.parse safari bug

      You're likely bumping up against the upper limit of the AppData store.  I'm speculating that Safari is adding some cruft characters that are pushing you over the limit (completely unvalidated).  A value of "false" means the scrubbed JSON failed to parse. Scrubbing involves a number of regular expressions being run to validate the JSON prior to parse.  You might try stepping the code to see what the post-scrubbed text looks like prior to parse.

Page 1 of 1 (3 items)