I am pretty new to Neo4J and currently using the neo4j-java-driver with bolt for accessing the DB and sending (possible) results back to a frontend. This API will obviously be written in Java and provide REST endpoints with JSON as payload.
Now, should I
Optional question: I am searching the web for quite some time regarding those questions, but it seems not to be a common task to use the results as JSON. Is this right and if yes, why?
My SO-Question is probably too confused, confusing and naive, but you might find additional information there.
The best way to do this is to serialize a
ResultSet object that comes back from a query as JSON.
But there are some kinks to be aware of when you do this.
For this, it doesn't really matter if you use the official Neo4j java client or some other language, the considerations are basically the same.