Improved JSON conversion for results returning to the client.