>
> JSON.stringfyEx will never produce text like this but JSON.parseEx accept
> this form.
>
> I mean
> {
>     a:11,
>     b:path(/a)
> }
> will act all the same with
> {
>     a:11,
>     b:11
> }
>

So it would produce copies of literals, but references of objects/arrays?

For example:
var obj = {};
obj.b = {};
obj.a = obj.b;

Would produce:

{
  "b": {},
  "a": path(/b)
}

and could be parsed so adding a member to either obj.b or ob.a would update
the other one. This would therefore be more powerfull than simply copying
the same values to the different names when parsing.

Marius Gundersen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to