/**
  * Returns a JSON object representation of a record set
  *
  * @internal
  *
  * @param  fRecordSet $record_set  The fRecordSet instance
  * @param  string     $class       The class of the records
  * @param  array      &$records    The fActiveRecord objects
  * @return string  The JSON object that represents an array of all of the fActiveRecord objects
  */
 public static function toJSONRecordSet($record_set, $class, &$records)
 {
     return '[' . join(',', $record_set->call('toJSON')) . ']';
 }