/**
  * Creates a Json like string to be passed to Google Visualization
  *
  * This function takes runs the generate function and then parses the result in the Json like format required
  * by Google Visualization.
  *
  * @param $objects
  * @param $columns
  *
  * @return string
  */
 public static function generateJson($objects, $columns)
 {
     return Notation::encode(static::generate($objects, $columns));
 }