Quantcast

Rendering a domain class in src as JSON

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Rendering a domain class in src as JSON

Roberto Guerra
I have my domain classes under src/groovy and mapped them through hibernate xml files.
They are working fine. I can persist, and extract data, etc.

However, when I try to render a a domain class as json in my controller, I get an error from grails saying that the object is not a Domain Class.

Is this a bug, or expected behaviour?

--
The Journey Is The Reward.
Loading...