JsonGenerator generator = ...;
// we can use the key rather than just a string key for performance reasons
// ... it's already escaped
generator.writeKey(firstNameKey).write("foo");
// rather than string key
generator.writeKey("lastName").write("foo");
Refer to #340
Create a JsonGenerator.Key
Use a JsonGenerator.Key