Convert neo4j driver bolt API response to into columns + data format

I created an API connection using neo4j-driver bolt. how can i convert the API response into HTTP like (columns + data) format?

i want the response to be like this:

drguwei_0-1663236200945.png

thanks!