}, autoIndexNodes = true)
public void testIterableJSONSerialization()
{
data.get();
JSONSerializer serializer = new JSONSerializer();
String query = start( lookup( "john", "node_auto_index", "name", "John" ), lookup( "maria",
"node_auto_index", "name", "Maria" ) )
.match( path( "p", shortestPath( node( "john" ).out().hops( null, 3 ).node( "maria" ) ) ) )
.returns( identifier( "p" ) )
.toString();
System.out.println( query );
try (Transaction tx = graphdb.beginTx()) {
String json = serializer.toJSON( engine.execute( query ) ).toString();
System.out.println( json );
tx.success();
}
}