Sha256: f49f7633ed3008ef4c56fe15d1b7813047ba16e4dcb361602c6508307a3bc820
Contents?: true
Size: 459 Bytes
Versions: 4
Compression:
Stored size: 459 Bytes
Contents
package com.kintone.client; import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets; public class Json { private static final JsonMapper MAPPER = new JsonMapper(); public static String format(Object o) { return new String(MAPPER.format(o), StandardCharsets.UTF_8); } public static <T> T parse(String s, Class<T> clazz) { return MAPPER.parse(new ByteArrayInputStream(s.getBytes(StandardCharsets.UTF_8)), clazz); } }
Version data entries
4 entries across 4 versions & 1 rubygems