@Test public void backslashJsonSerialization() { String hello = "MCowBQYDK2VwAyEAr0rjTWlCLJ8q9em0og33grHEh/3vmqp0IewosUaVnQg="; String serializedToJson = ConvertionUtils.serializeToJson(hello); assertEquals(hello, serializedToJson.replace("\"", "")); }
public static String serializeToJson(Object serializable) { return ConvertionUtils.getGson().toJson(serializable); }
ConvertionUtils { public static String serializeToJson(Object serializable) { return ConvertionUtils.getGson().toJson(serializable); } }
ConvertionUtils { public static String serializeToJson(Object serializable) { return ConvertionUtils.getGson().toJson(serializable); }  }
ConvertionUtils { public static String serializeToJson(Object serializable) { return ConvertionUtils.getGson().toJson(serializable); }  static byte[] base64ToBytes(String value); static String base64ToString(byte[] bytes); static String base64ToString(String value); static byte[] captureSnapshot(Object snapshotModel); static byte[] concatenate(byte[] first, byte[] second); static T deserializeFromJson(String serializedObject, Class<T> objectType); static Map<String, String> deserializeMapFromJson(String serializedObject); static synchronized Gson getGson(); static byte[] hexToBytes(String value); static T parseSnapshot(byte[] snapshot, Class<T> objectType); static String serializeToJson(Object serializable); static byte[] toBase64Bytes(String value); static String toBase64String(byte[] bytes); static String toBase64String(String value); static byte[] toBytes(String string); static String toHex(byte[] bytes); static String toString(byte[] bytes); static String toString(byte[] inputBytes, StringEncoding encoding); static String toString(InputStream is); }
ConvertionUtils { public static String serializeToJson(Object serializable) { return ConvertionUtils.getGson().toJson(serializable); }  static byte[] base64ToBytes(String value); static String base64ToString(byte[] bytes); static String base64ToString(String value); static byte[] captureSnapshot(Object snapshotModel); static byte[] concatenate(byte[] first, byte[] second); static T deserializeFromJson(String serializedObject, Class<T> objectType); static Map<String, String> deserializeMapFromJson(String serializedObject); static synchronized Gson getGson(); static byte[] hexToBytes(String value); static T parseSnapshot(byte[] snapshot, Class<T> objectType); static String serializeToJson(Object serializable); static byte[] toBase64Bytes(String value); static String toBase64String(byte[] bytes); static String toBase64String(String value); static byte[] toBytes(String string); static String toHex(byte[] bytes); static String toString(byte[] bytes); static String toString(byte[] inputBytes, StringEncoding encoding); static String toString(InputStream is);  }