try json_encode() for geckoboard #1892
Merge pull request #1922 from openscholar/1892-stats

try json_encode() for geckoboard #1892