I am using the MongoDB plugin version 1.0.0.GA. I can successfully save domain objects and view them in Mongo.
Now I am trying to make a controller endpoint that returns a domain as json. How do you obtain the underlying domain object as json? For example, If using the java driver natively, I would call myDBObject.toString() and get a json string. With grails, I
call myDomainObject.toString() and get the class name with the oid.
Thanks,
Nathan