diff --git a/src/java-additional/org/eclipse/elk/graph/json/JsonAdapter.xtend b/src/java-additional/org/eclipse/elk/graph/json/JsonAdapter.xtend index 181468c..9378be6 100644 --- a/src/java-additional/org/eclipse/elk/graph/json/JsonAdapter.xtend +++ b/src/java-additional/org/eclipse/elk/graph/json/JsonAdapter.xtend @@ -195,6 +195,14 @@ class JsonAdapter { } } + // - - - - - - - - - - - - - - - - - - - + // Remove members from a json object + // - - - - - - - - - - - - - - - - - - - + + def void removeJsonObj(JSONObject o, String element) { + o.put(element, null) + } + // - - - - - - - - - - - - - - - - - - - // Add to a json array // - - - - - - - - - - - - - - - - - - -