Sha256: 193f03fe84db53d944891f111daecefa6c1e54f4d08f2d5e2b7ff4e3eda7e241
Contents?: true
Size: 568 Bytes
Versions: 45
Compression:
Stored size: 568 Bytes
Contents
package sh.calaba.instrumentationbackend.query; import sh.calaba.org.codehaus.jackson.map.ObjectMapper; import java.io.IOException; import java.util.List; public class QueryResult { private List result; public QueryResult(List result) { this.result = result; } public String asJson() { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString(result); } catch (IOException e) { throw new RuntimeException("Could not convert result to json", e); } } }
Version data entries
45 entries across 45 versions & 2 rubygems