// create GSON serializer
final GsonBuilder gsonBuilder = new GsonBuilder()
.setPrettyPrinting()
.serializeNulls()
.registerTypeHierarchyAdapter(FrameworkException.class, new FrameworkExceptionGSONAdapter())
.registerTypeAdapter(IJsonInput.class, jsonInputAdapter)
.registerTypeAdapter(Result.class, resultGsonAdapter);
final boolean lenient = Boolean.parseBoolean(StructrApp.getConfigurationValue("json.lenient", "false"));