How to get the same result as the browser "Code" -> "Response"

Hi,
I would like to make and endpoint with java and SDN6 capable of returning the same result as the response of the browser to paint the subgraph with Angular.

image

I need these kind of json format to parse the response like:
https://doc.linkurio.us/ogma/latest/tutorials/neo4j/index.html

Thanks in advance
Regards