org.drools
diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-json/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-json/pom.xml
new file mode 100644
index 00000000000..32de869fa02
--- /dev/null
+++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-json/pom.xml
@@ -0,0 +1,66 @@
+
+
+
+
+ drools-impact-analysis-graph
+ org.drools
+ 999-SNAPSHOT
+
+ 4.0.0
+
+ drools-impact-analysis-graph-json
+
+ Drools :: Impact Analysis Graph :: JSON
+
+
+ org.drools.impact.analysis.graph.json
+
+
+
+
+ org.drools
+ drools-impact-analysis-graph-common
+
+
+ org.drools
+ drools-impact-analysis-parser
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+
+
+
+ junit
+ junit
+ test
+
+
+ org.assertj
+ assertj-core
+ test
+
+
+
+
diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-json/src/main/java/org/drools/impact/analysis/graph/json/GraphJsonGenerator.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-json/src/main/java/org/drools/impact/analysis/graph/json/GraphJsonGenerator.java
new file mode 100644
index 00000000000..e578b434e1e
--- /dev/null
+++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-json/src/main/java/org/drools/impact/analysis/graph/json/GraphJsonGenerator.java
@@ -0,0 +1,90 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.drools.impact.analysis.graph.json;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.drools.impact.analysis.graph.Graph;
+import org.drools.impact.analysis.graph.Link;
+import org.drools.impact.analysis.graph.Node;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class GraphJsonGenerator {
+
+ private static final Logger logger = LoggerFactory.getLogger(GraphJsonGenerator.class);
+
+ private GraphJsonGenerator() {
+ // Creating instances of this class is not allowed.
+ }
+
+ public static String generateJson(Graph graph) {
+ Map>> map = convertToMap(graph);
+ ObjectMapper objectMapper = new ObjectMapper();
+ try {
+ return objectMapper.writeValueAsString(map);
+ } catch (JsonProcessingException e) {
+ throw new IllegalArgumentException(e);
+ }
+ }
+
+ private static Map>> convertToMap(Graph graph) {
+ Map>> map = new HashMap<>();
+ List