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

Method name

java/src/org/openqa/selenium/json/JsonOutput.java:320–326  ·  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

318 * @throws java.util.NoSuchElementException if serialization object stack is empty
319 */
320 public JsonOutput name(String name) {
321 if (!(stack.getFirst() instanceof JsonObject)) {
322 throw new JsonException("Attempt to write name, but not writing a json object: " + name);
323 }
324 ((JsonObject) stack.getFirst()).name(name);
325 return this;
326 }
327
328 /**
329 * End the current JSON object.

Callers 1

mapObjectMethod · 0.95

Calls 1

nameMethod · 0.65

Tested by

no test coverage detected