currently its tied to DAO and uses our PagingData. currently its spins through and creates a copy of the data into another list of maps and then copies it again to the writer when we render/respond with as JSON
customize either a renderer or objectMarshaler or both to deal with the built in Grails PagedResultList, we should be able to pass in the selectFields/showfields/listFields to it somehow.
currently its tied to DAO and uses our PagingData. currently its spins through and creates a copy of the data into another list of maps and then copies it again to the writer when we render/respond with
as JSON
customize either a renderer or objectMarshaler or both to deal with the built in Grails PagedResultList, we should be able to pass in the selectFields/showfields/listFields to it somehow.
see the following for refernce http://docs.grails.org/latest/guide/REST.html#renderers https://stackoverflow.com/questions/23940641/render-metadata-for-pagination-from-grails-restfulcontroller-index-search-action https://kylewbanks.com/blog/Customizing-JSON-Grails-Object-Marshalling https://www.slideshare.net/clatimer/building-awesome-apis-in-grails
Source: https://github.com/grails-plugins/grails-plugin-converters/blob/master/src/main/groovy/grails/converters/JSON.java
and see the org.grails.plugins.web.rest.render.json.DefaultJsonRenderer and JsonCollectionRenderer in the Grails source