Hello,
I'm creating a web application with Seam that, in addition to serving web pages, will also provide JSON objects for some Ajax calls.
My first thought was to simply let an xhtml page return JSON, as follows:
<html ...><head></head><body> <ui:composition> { "someKey": "someValue", "someOtherKey": "#{someBean.someValue}" } </ui:composition> </body></html>
I've been having the exact same thoughts with regards to Seam and JSON. Did you ever solve this problem?
In particular I've been wondering if there is a general preference given to one of the many JSON libraries out there and if so why?