This is only the start of the JSON classes, but there is now a helper class to format data for the Google Chart API. The basic operations are:
- add_column - add a header for a single column
- add_row - add a row of data
- get_json - emit the data as a json string, properly formatted to be directly injested by the google.Visualization.DataTable constructor.
The stats.pl cgi has already been updated to take advantage of this new library, which trimmed about 15% of the code out
Comments