@Test void fileDescriptorTest() { FileDescriptor fileDescriptor = new FileDescriptor(); Path path = Paths.get("/Users/kai/Documents"); fileDescriptor.setDirectory(path); path = Paths.get("/Users/kai/Documents/templates/test.xlsx"); fileDescriptor.setRelativePath(path); String json = JsonUtils.toJson(fileDescriptor, true); log.info(json); assertEquals("/Users/kai/Documents/templates/test.xlsx", normalize(PersistencyRegistry.getDefault().getCanonicalPathString(path))); }
public static String toJson(Object obj) { return toJson(obj, false); }
JsonUtils { public static String toJson(Object obj) { return toJson(obj, false); } }
JsonUtils { public static String toJson(Object obj) { return toJson(obj, false); }  }
JsonUtils { public static String toJson(Object obj) { return toJson(obj, false); }  static String toJson(Object obj); static String toJson(Object obj, boolean prettyPrinter); static String toJson(String str); static T fromJson(Class<T> clazz, String json); static T fromJson(final TypeReference<T> type, final String json); }
JsonUtils { public static String toJson(Object obj) { return toJson(obj, false); }  static String toJson(Object obj); static String toJson(Object obj, boolean prettyPrinter); static String toJson(String str); static T fromJson(Class<T> clazz, String json); static T fromJson(final TypeReference<T> type, final String json);  }