Hi all,
I am trying to run a Gremlin Script across Neo4j using Groovy. I am able to
get the response, but the response in in JSON format.
How to get the JSON object from the response.
currently I am using Reader to print the response content.
http.post( uri:
'http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script',
body: 'script=' + "g.v(45);",
requestContentType: URLENC) { resp,reader ->
println "--------- Printing Status --------"
println "Success! ${resp.status}"
println "----------Printing Content type----------"
println "${resp.headers.'Content-Type'}"
println "---------------------------------"
println reader
}
How to get the JSON object from the response.
Thanks
Vijay