in reply to (OT) JSON - circular references allowed or not?
I don't think it does
JSON, like all nameless data structures, cannot be self-referential
Ex
If it wasn't for name $a, then $a couldn't refer to itselfmy $a ; $a = [ \$a ] ; # self referential, but
[ # used to be $a [] # WHOOPS, not $a ]
JSON is JavaScript without named variables
I suppose there might be js libraries that try to overcome this limitation by doing the mapping for you, but i've not seen one
|
|---|