Hi,

Ticket opened

https://github.com/neo4j/community/issues/110

Details:

When I try run this query via rest.
{"script":"g.v(0).out('HOSTS').filter{ it.Key == 
'romikoagency'}.in('USER_BELONGS_TO').as('username').as('userGivenName').out('USER_LINKED_TO_PROGRAM').as('program').table(new
 Table()){it.Username}{it.GivenName}{it.Name}.cap"
}

Notice the combination of table and cap. I get this result in the raw HTTP 
response.
[ "[[userGivenName:romiko.derbynew, username:Romiko, program:Testa], 
[userGivenName:romiko.derbynew, username:Romiko, program:Zumba Lessons], 
[userGivenName:romiko.derbynew, username:Romiko, program:Counselling], 
[userGivenName:romiko.derbynew, username:Romiko, program:Counselling], 
[userGivenName:romiko.derbynew, username:Romiko, program:After Care]]" ]

The above JSON result is invalid, should it be?:
[
{"userGivenName":"romiko.derbynew", "username":"Romiko", "program":"Testa"},
{"userGivenName":"romiko.derbynew", "username":"Romiko", "program":"Zumba 
Lessons"}, {"userGivenName":"romiko.derbynew", "username":"Romiko", 
"program":"Counselling"},
{"userGivenName":"romiko.derbynew", "username":"Romiko", 
"program":"Counselling"},
{"userGivenName":"romiko.derbynew", "username":"Romiko", "program":"After Care"}
]

We have extended the Neo4jClient to now support table projections and cap 
combo, however, the JSON deserialization is broken due to the invalid json 
results.

Kind Regards
Romiko

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to