$o=$options[$o]; } } /** * Formats response to json * * @return string */ public function toJson (){ return json_encode(get_object_vars($this)); } } // class Alternc_Api_Response