MCPcopy Create free account
hub / github.com/apache/solr / toJSONString

Method toJSONString

solr/solrj/src/java/org/apache/solr/common/util/Utils.java:265–267  ·  view source on GitHub ↗

@param indentSize The number of space characters to use as an indent. 0=newlines but no spaces, -1=no indent at all.

(Object o, int indentSize)

Source from the content-addressed store, hash-verified

263 return new String(toJSON(o, indentSize), StandardCharsets.UTF_8);
264 }
265
266 public static String toJSONString(Object o) {
267 return new String(toJSON(o), StandardCharsets.UTF_8);
268 }
269
270 public static byte[] toUTF8(CharArr out) {

Callers 15

dumpRawSpansMethod · 0.95
comparePhaseMethod · 0.95
writeGoldFileMethod · 0.95
testSetupBasicAuthMethod · 0.95
getQueryResponseMethod · 0.95
SecurityJsonClass · 0.95
transformFacetFieldsMethod · 0.95
testRandomGroupingMethod · 0.95
testRandomJoinMethod · 0.95

Calls 1

toJSONMethod · 0.95

Tested by 15

dumpRawSpansMethod · 0.76
comparePhaseMethod · 0.76
writeGoldFileMethod · 0.76
testSetupBasicAuthMethod · 0.76
getQueryResponseMethod · 0.76
transformFacetFieldsMethod · 0.76
testRandomGroupingMethod · 0.76
testRandomJoinMethod · 0.76
setupClusterMethod · 0.76
testBasicAuthMethod · 0.76