JsonShredder implements Callable<Long> { public static JsonReader createStringReader(final String json) { checkNotNull(json); final var stringReader = new StringReader(json); final var jsonReader = new JsonReader(stringReader); jsonReader.setLenient(true); return jsonReader; } private  JsonShredder(final Builder builder); @Override Long call(); ObjectRecordValue<?> getObjectRecordValue(); static void main(final String... args); static JsonReader createFileReader(final Path path); static JsonReader createStringReader(final String json);  }
@Test public void test() throws IOException { final var jsonStringReader = JsonShredder.createStringReader("test"); assertEquals("test", jsonStringReader.nextString()); }