for (int j = 0; j < path.length-1; ++j) {
obj = obj.get(path[j]).object();
}
JsonValue jsonValue;
try {
jsonValue = new JsonNumber(Integer.parseInt(value));
} catch (Exception e) {
jsonValue = new JsonString(value);
}
obj.set(path[path.length-1], jsonValue);
writeSceneJson(file, desc);