Javascript objects as json string

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Javascript objects as json string

XumuK
What i`m doing wrong?

Workspace

I can inspect this code but:

'hello' asJQuery asJSONString  ===>  JavaScript exception: RangeError: Maximum call stack size exceeded
jQuery new asJSONString ===>  JavaScript exception: RangeError: Maximum call stack size exceeded
document asJSONString  ===>  JavaScript exception: RangeError: Maximum call stack size exceeded
...

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Javascript objects as json string

Nicolas Petton
I looks like you can't do that anyway:

JSON.stringify(document)
> TypeError: JSON.stringify cannot serialize cyclic structures.

nico

On Tue, 2013-10-01 at 01:23 -0700, XumuK wrote:

> What i`m doing wrong?
>
>
> Workspace
>
>
> I can inspect this code but:
>
>
> 'hello' asJQuery asJSONString  ===>  JavaScript exception: RangeError:
> Maximum call stack size exceeded
> jQuery new asJSONString ===>  JavaScript exception: RangeError:
> Maximum call stack size exceeded
>
> document asJSONString  ===>  JavaScript exception: RangeError: Maximum
> call stack size exceeded
> ...
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.