MCPcopy Create free account
hub / github.com/PlexPt/rocket-pt / stringify

Method stringify

src/main/java/com/rocketpt/server/util/JsonUtils.java:45–52  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

43 }
44
45 public static String stringify(Object obj) {
46 try {
47 return JSON.writeValueAsString(obj);
48 } catch (JsonProcessingException e) {
49 e.printStackTrace();
50 }
51 return null;
52 }
53
54 public static <T> T parseToObject(String json, Class<T> clz) {
55 try {

Callers 1

appendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected