Re: deJSONKit - serialization as JSON from E
Tyler Close <[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 18, 2009 at 7:40 AM, Kevin Reid <[email protected]> wrote: > (Hm, though you don't AFAIK have any syntax for cycles? I avoid representing cycles directly in JSON by snipping the JSON tree at the promises. Where a promise appears, I output an "@" element in its place. Client code can then reconstruct the cycle. For example, resource at: <./#s=1234>: { "name" : "I am recursive", "self": { "@" : "./#s=1234" } } --Tyler -- "Waterken News: Capability security on the Web" http://waterken.sourceforge.net/recent.html