According to James Wards Play Tutorial it's very easy to get a JSON out of your model. Also with XML this should be quite simple.
But most of the time, I have the requirement to build not just an plain XML or JSON Endpoint, but furthermore to deliver special flavours of those. In my case this is GeoJSON or TopoJSON. But also in XML, it could be a simple RSS or ATOM Feed you have to deliver out of your model. Also building a XML fitting to a very nasty XSD schema is still a case sometimes.
What options do you have in play to perform this, or which one of the following would you recommend?:
- In case of GeoJSON/TopoJSON: Activate JSON as a template format, and create JSON Templates
- In case of ATOM/RSS: Just use an XML Template
- Some way to modify the JSON response coming from
toJson(tasks)
? - Use of a fancy library which does all that out of the box, and everyone knows about it, except me?