Example #1
0
 /**
  * Shortcut for rendering a JSON response with just the data
  * @param object $data the PHP object that will be converted to JSON
  * empty array by default
  * @return \OCA\Music\AppFramework\Http\JSONResponse containing the values
  */
 public function renderPlainJSON($data = array())
 {
     $response = new JSONResponse();
     $response->setData($data);
     return $response;
 }