Sha256: d0187eaffd4a179ad4100d19780235b2707de5a90aea4d56175e80f189982a09
Contents?: true
Size: 568 Bytes
Versions: 24
Compression:
Stored size: 568 Bytes
Contents
package sh.calaba.instrumentationbackend.query; import java.io.IOException; import java.util.List; import sh.calaba.org.codehaus.jackson.map.ObjectMapper; 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
24 entries across 24 versions & 1 rubygems