MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / name

Method name

java/src/org/openqa/selenium/json/JsonOutput.java:309–315  ·  view source on GitHub ↗

Set the name of a new JSON object property. @param name JSON object property name @return this JsonOutput object @throws JsonException if top item on serialization object stack isn't a JsonObject @throws java.util.NoSuchElementException if serialization object stack is empty

(String name)

Source from the content-addressed store, hash-verified

307 * @throws java.util.NoSuchElementException if serialization object stack is empty
308 */
309 public JsonOutput name(String name) {
310 if (!(stack.getFirst() instanceof JsonObject)) {
311 throw new JsonException("Attempt to write name, but not writing a json object: " + name);
312 }
313 ((JsonObject) stack.getFirst()).name(name);
314 return this;
315 }
316
317 /**
318 * End the current JSON object.

Callers 2

JsonOutputMethod · 0.95
mapObjectMethod · 0.95

Calls 1

nameMethod · 0.65

Tested by

no test coverage detected