Author: bhofmann
Date: Tue Sep 21 13:17:41 2010
New Revision: 999398

URL: http://svn.apache.org/viewvc?rev=999398&view=rev
Log:
Fix: gadgets.json.stringify generates invalid and unparsable string if a value 
in an object is undefined


Modified:
    shindig/trunk/features/src/main/javascript/features/core.json/json.js

Modified: shindig/trunk/features/src/main/javascript/features/core.json/json.js
URL: 
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.json/json.js?rev=999398&r1=999397&r2=999398&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.json/json.js 
(original)
+++ shindig/trunk/features/src/main/javascript/features/core.json/json.js Tue 
Sep 21 13:17:41 2010
@@ -175,7 +175,7 @@ if (window.JSON && window.JSON.parse && 
           // Join all of the member texts together and wrap them in braces.
           return '{' + a.join(',') + '}';
       }
-      return 'undefined';
+      return '';
     }
 
     return {


Reply via email to