MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / toJson

Method toJson

java/src/org/openqa/selenium/json/Json.java:127–129  ·  view source on GitHub ↗

Serialize the specified object to JSON string representation. NOTE : This method limits traversal of nested objects to the default JsonOutput#MAX_DEPTH maximum depth. @param toConvert the object to be serialized @return JSON string representing the specified object

(@Nullable Object toConvert)

Source from the content-addressed store, hash-verified

125 * @return JSON string representing the specified object
126 */
127 public String toJson(@Nullable Object toConvert) {
128 return toJson(toConvert, JsonOutput.MAX_DEPTH);
129 }
130
131 /**
132 * Serialize the specified object to JSON string representation.

Calls 3

newOutputMethod · 0.95
toStringMethod · 0.65
writeMethod · 0.45