Add ability to get statistics in json format
Reworked implementation to not return encoded json
Merge pull request #852 from pabdavis/statistics-json

[Proposal] Ability to get statistics data unformatted