Sha256: 653354f6213fc6676c88e87de39249a51ab04d77ab28507771532ef2c43965a6
Contents?: true
Size: 434 Bytes
Versions: 44
Compression:
Stored size: 434 Bytes
Contents
package sh.calaba.instrumentationbackend.json; import java.io.IOException; import java.util.Map; import sh.calaba.org.codehaus.jackson.map.ObjectMapper; public class JSONUtils { public static String asJson(Map<?,?> map) { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString(map); } catch (IOException e) { throw new RuntimeException("Could not convert result to json: "+map, e); } } }
Version data entries
44 entries across 44 versions & 1 rubygems