Jure,
if the primitives in the response are not recognized (like a normal
Groovy Object), then the toString() of the result is returned. If you
want, you can fork and add to the representations, see
https://github.com/neo4j/gremlin-plugin/blob/master/src/main/java/org/neo4j/server/plugin/gremlin/GremlinToRepresentationConverter.java
- there we probably should add GraphDatabaseService as one possible
return and convert it to the normal representation you see at
/db/data/ .

You up for it?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Thu, Nov 3, 2011 at 4:42 AM, Jure Zakotnik <j...@gmx.de> wrote:
> Hi Peter and Community,
>
> I played a bit with passing a groovy script to neo4j. However the response
> seems to be not JSON encoded, did I overlook something?
>
> I'm using 1.5M02 and did the following request (from tcpmon)
> http request:
> POST /db/data/ext/GremlinPlugin/graphdb/execute_script HTTP/1.1
> Content-Type: application/json
>
> post body:
> {"script":"neo4j = g.getRawGraph()"}
>
> The result seems to be not JSON encoded and different from the
> documentation:
> ..
> Content-Type: application/json
> "EmbeddedGraphDatabase [...neo4j\\neo4j-community-1.5.M02\\data\\graph.db]"
>
> Shouldn't this be a JSON string? Later on grails complains with an
> groovyx.net.http.ResponseParseException which is correct, since it's not
> JSON, right?
>
>
> Thanks, Jure
>
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/REST-api-get-list-of-all-relationship-properties-unique-tp3458852p3476872.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to