Support for dumping JSON of GraphStatistics

This may not be straightforward but it works. Not as smooth and Ruby !!