MCPcopy
hub / github.com/google/gson / beginObject

Method beginObject

src/main/java/com/google/gson/stream/JsonWriter.java:245–247  ·  view source on GitHub ↗

Begins encoding a new object. Each call to this method must be paired with a call to #endObject. @return this writer.

()

Source from the content-addressed store, hash-verified

243 * @return this writer.
244 */
245 public JsonWriter beginObject() throws IOException {
246 return open(JsonScope.EMPTY_OBJECT, "{");
247 }
248
249 /**
250 * Ends encoding the current object.

Callers 14

testWriteInvalidStateMethod · 0.95
testTwoNamesMethod · 0.95
testNameWithoutValueMethod · 0.95
testValueWithoutNameMethod · 0.95
testBadNestingObjectMethod · 0.95
testNullNameMethod · 0.95
testNullStringValueMethod · 0.95
testEmptyObjectMethod · 0.95
testObjectsInArraysMethod · 0.95
testArraysInObjectsMethod · 0.95
testRepeatedNameMethod · 0.95

Calls 1

openMethod · 0.95

Tested by 14

testWriteInvalidStateMethod · 0.76
testTwoNamesMethod · 0.76
testNameWithoutValueMethod · 0.76
testValueWithoutNameMethod · 0.76
testBadNestingObjectMethod · 0.76
testNullNameMethod · 0.76
testNullStringValueMethod · 0.76
testEmptyObjectMethod · 0.76
testObjectsInArraysMethod · 0.76
testArraysInObjectsMethod · 0.76
testRepeatedNameMethod · 0.76