140141142143144145146147
@Override public Object parse(InputStream jsonStream) throws InvalidJsonException { try { return mapper.readValue(jsonStream, Object.class); } catch(IOException e) { throw new InvalidJsonException(e.getMessage(), e); } }
5657585960616263
try { JSON jsonRoot = jsonSlurper.parse(jsonReader); Object converted = convertToPlainJavaImplementation(jsonRoot); return MutableValue.TO_MUTABLE_VALUE.apply(converted); } catch (Exception e) { throw new InvalidJsonException(e); } }