neo4j/community — Issue #317: Invalid Json on use groupCount gremlin with it.map()
Author: gustavoboby
Created: 2012-03-07 23:45:57+00:00
State: open

When i execute the command above the json result is not valid.

http> POST /db/data/ext/GremlinPlugin/graphdb/execute_script {"script": "grouped=[:]; g.v(0).in.groupCount(grouped){it.map()}.iterate();grouped.sort{a,b -> b.value <=> a.value}"}
==> 200 OK
==> {
==> "{Age=27, LastName=Oliveira, Name=Luiz=Gustavo,Bosco}" : 1,
==> "{Age=24, Name=Alex}" : 1
==> }

the original json is {"Age": 27, "LastName": "Oliveira", "Name":"Luiz=Gustavo,Bosco"} and {"Age":24, "Name":"Alex"}

on the first json the property "Name" with the value "Luiz=Gustavo,Bosco" it's impossible to transform on json