MCPcopy Create free account
hub / github.com/e2wugui/zeze / parse

Method parse

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Json.java:556–565  ·  view source on GitHub ↗
(@NotNull String jsonStr, @Nullable Class<T> klass)

Source from the content-addressed store, hash-verified

554 }
555
556 public static <T> @Nullable T parse(@NotNull String jsonStr, @Nullable Class<T> klass) {
557 JsonReader jr = JsonReader.local();
558 try {
559 return jr.buf(jsonStr).parse(klass);
560 } catch (ReflectiveOperationException e) {
561 throw Task.forceThrow(e);
562 } finally {
563 jr.reset();
564 }
565 }
566
567 public static <T> @Nullable T parse(byte @NotNull [] jsonStr, @Nullable Class<T> klass) {
568 JsonReader jr = JsonReader.local();

Callers 9

testGTable1Method · 0.95
testGTable2Method · 0.95
onEndStreamMethod · 0.95
onEndStreamMethod · 0.95
onEndStreamMethod · 0.95
parseKeyMethod · 0.95
OnServletPutRecordMethod · 0.95
invokeHandlerMethod · 0.95
castMethod · 0.95

Calls 5

localMethod · 0.95
bufMethod · 0.95
forceThrowMethod · 0.95
resetMethod · 0.95
parseMethod · 0.65

Tested by 2

testGTable1Method · 0.76
testGTable2Method · 0.76