Jason Roman's PHP Flot class for converting PHP arrays to Flot JSON format