json_serialize( $object ) ); } public function decode( $input ) { return $this->json_unserialize( base64_decode( $input ) ); } }