rootProperty as a function!

When I design an endpoint to return some JSON data for consumption in a grid, I always nest the data in the data property so that I can provide a total count in order to support pagination. So most of my server side scripts are setup to nest data. Something…