I'm using a json file to load nodes and edges to faunus gremlin but it gives me error like this...
java.io.IOException: A JSONObject text must end with '}' at character 1 of {
at com.thinkaurelius.faunus.formats.graphson.FaunusGraphSONUtility.fromJSON(FaunusGraphSONUtility.java:76)
at com.thinkaurelius.faunus.formats.graphson.GraphSONRecordReader.nextKeyValue(GraphSONRecordReader.java:41)
I have this format for the json file (actual file)...
{
"mode": "NORMAL",
"vertices": [
{
"_id": "5",
"PostId": "5",
"Vtype": "Post",
"_type": "vertex"
},
{
"_id": "definitions",
"_type": "vertex",
"Count": "9",
"TagId": "definitions"
}
]
}
{
"mode": "NORMAL",
"edges": [
{
"_outV": "definitions",
"_type": "edge",
"_id": 0,
"_inV": "5",
"_label": "totalAuthorIs"
}
]
}
Here's look at what I did at gremlin: http://i.imgur.com/wzzOmw9.png
Basically just ran g.V after loading faunus.properties
Is the format correct or should do something else to resolve the error. Can't understand where the problem is creeping from.
Thanks in advance