Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to get the JSON object from the response using Groovy?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vijay  
View profile  
 More options Jul 20 2012, 1:21 am
From: Vijay <vk.1...@gmail.com>
Date: Thu, 19 Jul 2012 22:21:42 -0700 (PDT)
Local: Fri, Jul 20 2012 1:21 am
Subject: How to get the JSON object from the response using Groovy?

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Neubauer  
View profile  
 More options Jul 20 2012, 10:40 am
From: Peter Neubauer <peter.neuba...@neotechnology.com>
Date: Fri, 20 Jul 2012 07:40:19 -0700
Local: Fri, Jul 20 2012 10:40 am
Subject: Re: [Neo4j] How to get the JSON object from the response using Groovy?

Vijay,
that is nothing related to Neo4j, but more to Groovy and their JSON
handling from your client. Maybe asking in the Groovy user lists or
googling around Groovy will help?

/peter

--

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Wanna learn something new? Come to @graphconnect.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »