Object (JsonValueAdapter element) { if (element.isObject()) { try { return jsonObjectMapper.readTree(element.getDelegate().getText()); } catch (IOException exception) { return null; } } else if (element.isStringLiteral()) { return StringUtil.unquoteString(element.getDelegate().getText()); } else if (element.isNumberLiteral()) { return getNumber(element); } else if (element.isBooleanLiteral()) { return getBoolean(element); } return null; }