/** * getting songs list in json format * @param array $input * @return json */ public function searchAlbum($input) { $albums = parent::searchAlbum(json_decode($input, true)); if ($albums) { return $this->buildAnswer(true, 'Ok', array($albums)); } else { return $this->buildAnswer(false, 'Cannot fetch albums at this time'); } }