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

Method toCompactString

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Json.java:622–629  ·  view source on GitHub ↗
(@Nullable Object obj)

Source from the content-addressed store, hash-verified

620 }
621
622 public static @NotNull String toCompactString(@Nullable Object obj) {
623 JsonWriter jw = JsonWriter.local();
624 try {
625 return jw.clear().setFlagsAndDepthLimit(0, 16).write(obj).toString();
626 } finally {
627 jw.clear();
628 }
629 }
630
631 public static byte @NotNull [] toCompactBytes(@Nullable Object obj) {
632 JsonWriter jw = JsonWriter.local();

Callers 7

testGTable1Method · 0.95
testGTable2Method · 0.95
onEndStreamMethod · 0.95
onEndStreamMethod · 0.95
onEndStreamMethod · 0.95
onEndStreamMethod · 0.95
invokeHandlerMethod · 0.95

Calls 5

localMethod · 0.95
clearMethod · 0.95
setFlagsAndDepthLimitMethod · 0.80
writeMethod · 0.65
toStringMethod · 0.45

Tested by 2

testGTable1Method · 0.76
testGTable2Method · 0.76