public static JSONObject jsonFromElement ( final AtlasElement element , final Set < String > propertyKeys , final AtlasGraphSONMode mode ) throws JSONException { final AtlasGraphSONUtility graphson = element instanceof AtlasEdge ? new AtlasGraphSONUtility ( mode , null , propertyKeys ) : new AtlasGraphSONUtility ( mode , propertyKeys , null ) ; return graphson . jsonFromElement ( element ) ; }
Creates a Jettison JSONObject from a graph element .