You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One confusing aspect of naming in some parts of Jackson is reference to Object "fields": although there are a few alternatives (field, property, entry at least), we have mostly settled on "property" as the standard thing.
So with 3.0 let's try to unify JsonGenerator and JsonParser API (and supporting helpers types like context objects) to use "property" wherever "field" used to be used.
Changes include: (I'll try to add notes on all changes)
JsonToken: FIELD_NAME became PROPERTY_NAME (probably the biggest change externally)
JsonParser:
getCurrentName()->currentName()
nextFieldName()->nextName()
JsonGenerator:
writeFieldName() -> writeName()
All writeXxxField() became writeXxxProperty()
All writeXxxFieldStart() became writeXxxPropertyStart()
writeObject() changed to writePOJO() (since "object" here did NOT refer to JSON Object but to Java Object)
cowtowncoder
changed the title
Replace references to "field" in JsonGenerator method names with "property"
Replace references to "field" in JsonGenerator, JsonParser method names with "property"
Jan 26, 2021
cowtowncoder
changed the title
Replace references to "field" in JsonGenerator, JsonParser method names with "property"
Replace references to "field" in JsonGenerator, JsonParser, JsonToken method names with "property"
Feb 4, 2021
cowtowncoder
changed the title
Replace references to "field" in JsonGenerator, JsonParser, JsonToken method names with "property"
Replace references to "field" with "property" in JsonGenerator, JsonParser, method names; JsonToken values (JsonToken.FIELD_NAME -> JsonToken.PROPERTY_NAME)
Feb 4, 2021
One confusing aspect of naming in some parts of Jackson is reference to Object "fields": although there are a few alternatives (field, property, entry at least), we have mostly settled on "property" as the standard thing.
So with 3.0 let's try to unify
JsonGenerator
andJsonParser
API (and supporting helpers types like context objects) to use "property" wherever "field" used to be used.Changes include: (I'll try to add notes on all changes)
JsonToken
:FIELD_NAME
becamePROPERTY_NAME
(probably the biggest change externally)JsonParser
:getCurrentName()
->currentName()
nextFieldName()
->nextName()
JsonGenerator
:writeFieldName()
->writeName()
writeXxxField()
becamewriteXxxProperty()
writeXxxFieldStart()
becamewriteXxxPropertyStart()
writeObject()
changed towritePOJO()
(since "object" here did NOT refer to JSON Object but to Java Object)PrettyPrinter
:writeObjectFieldValueSeparator()
->writeObjectNameValueSeparator()
Separators
: (used byPrettyPrinter
)getObjectFieldValueSeparator()
->getObjectNameValueSeparator()
withObjectFieldValueSeparator()
->withObjectNameValueSeparator()
The text was updated successfully, but these errors were encountered: