@@ -0,0 +1,928 @@
+/*******************************************************************************%0A * Copyright (c) 2017 Liviu Ionescu.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A * %0A * Contributors:%0A *     Liviu Ionescu - initial version%0A *******************************************************************************/%0A%0Apackage ilg.gnumcueclipse.core;%0A%0Aimport org.json.simple.JSONObject;%0A%0Apublic class JsonUtils %7B%0A%0A%09public static Object get(JSONObject json, String dottedPath) %7B%0A%0A%09%09String%5B%5D parts = dottedPath.split(%22%5B.%5D%22);%0A%09%09Object obj = json;%0A%09%09for (int i = 0; i %3C parts.length; ++i) %7B%0A%09%09%09if (obj instanceof JSONObject) %7B%0A%09%09%09%09obj = ((JSONObject) obj).get(parts%5Bi%5D);%0A%09%09%09%7D%0A%09%09%09if (obj == null) %7B%0A%09%09%09%09return null;%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09return obj;%0A%09%7D%0A%7D%0A

add JsonUtils