public static function get($data, $format = true) { $js = new Services_JSON(); if ($format) { return $js->json_format($data); } else { return $js->encode($data); } }