We might want to make a test to insure that core.json mimics the window.JSON
behavior in the browser...


On Tue, Sep 21, 2010 at 6:17 AM, <[email protected]> wrote:

> 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 {
>
>
>


-- 
Paul Lindner -- [email protected] -- linkedin.com/in/plindner

Reply via email to