public function jsonSerialize() {

		$request = new \WP_REST_Request( 'GET', '/pressbooks/v2/metadata' );
		$meta = new \Pressbooks\Api\Endpoints\Controller\Metadata();
		$metadata = $meta
			->get_item( $request )
			->get_data();

		return apply_filters( 'pb_json_metadata', $metadata );
	}
public function jsonSerialize() {

		$request = new \WP_REST_Request( 'GET', '/pressbooks/v2/metadata' );
		$meta = new \Pressbooks\Api\Endpoints\Controller\Metadata();
		$metadata = $meta
			->get_item( $request )
			->get_data();

		return apply_filters( 'pb_json_metadata', $metadata );
	}
public function jsonSerialize ( ) { $ request = new \ WP_REST_Request ( 'GET' , '/pressbooks/v2/metadata' ) ; $ meta = new \ Pressbooks \ Api \ Endpoints \ Controller \ Metadata ( ) ; $ metadata = $ meta -> get_item ( $ request ) -> get_data ( ) ; return apply_filters ( 'pb_json_metadata' , $ metadata ) ; }
Returns a JSON object of the book information which can be posted to an API.

@since 4.0.0

@return array
Returns a JSON object of the book information which can be posted to an API .