PHP Flot class for converting PHP arrays to Flot JSON format