I'm currently pondering over the (radical) changes that Cocoon needs to stay mainstream in the changing world of web applications frameworks. Among other things, I just had a light bulb moment about JSON.
eval() it and you have an object to work with.
Now how does this fit with Cocoon, which is primarily based on XML processing pipelines? Simple: let's write a JSONSerializer, that would basically replace square brackets with curly braces!
Along the existing
cocoon.sendPageAndWait("myotherpage") (creates a continuation and suspends the script), let's just add a