public function json( $data ) {
		$response = $this->response();
		$response = $response->withHeader( 'Content-Type', 'application/json' );
		$response = $response->withBody( Psr7\stream_for( wp_json_encode( $data ) ) );
		return $response;
	}
public function json( $data ) {
		$response = $this->response();
		$response = $response->withHeader( 'Content-Type', 'application/json' );
		$response = $response->withBody( Psr7\stream_for( wp_json_encode( $data ) ) );
		return $response;
	}
public function json ( $ data ) { $ response = $ this -> response ( ) ; $ response = $ response -> withHeader ( 'Content-Type' , 'application/json' ) ; $ response = $ response -> withBody ( Psr7 \ stream_for ( wp_json_encode ( $ data ) ) ) ; return $ response ; }
Get a cloned response, json encoding the passed data as the body.

@param  mixed             $data
@return ResponseInterface
Get a cloned response json encoding the passed data as the body .