How to import a JSON file that is exported from Neo4j into D3
You can customize the output returned by Cypher using literal maps. Using this it should be possible to return exactly the json structure to be handed over to D3.
Another alternative is using some application side json transformation, as an example see http://maxdemarzi.com/2012/10/11/hubway-data-visualization-challenge-with-neo4j/