tinkerpop/gremlin — Issue #259: Add JsonImport to Gremlin Extensions
Author: espeed
Created: 2011-11-30 18:14:26+00:00
State: open

The addVertex and addEdge methods have been overloaded to accept JSON, and Marko is working on making the Index put method accept a map property (https://github.com/tinkerpop/blueprints/issues/187), which will enable you to overload it to accept JSON.

However, there may be some methods that get missed.

It may be simpler to have Gremlin Groovy import JsonSlurper so that it's available to the Rexster and Neo4jServer Gremlin Extensions. This will ensure that devs can manually overload methods in the client code if it hasn't been done yet, without having to import on each call:

```groovy
import groovy.json.JsonSlurper;
```