-
-
Notifications
You must be signed in to change notification settings - Fork 814
JsonFactory Features
Tatu Saloranta edited this page Nov 18, 2013
·
8 revisions
Jackson Streaming API has a set of on/off features that change aspects that have effect on both reading and writing JSON. Settings are set on JsonFactory
, and generally can NOT be dynamically changed after first JsonParser
or JsonGenerator
has been created.
JsonFactory f = new JsonFactory();
f.disable(JsonFactory.Feature.CANONICALIZE_FIELD_NAMES);
These features determine if and how canonicalization of JSON Object property names is done. This mostly affects parsing; although in future it is possible that symbol tables might be used for optimized generation of JSON content as well (not implemented as of version 2.3).
- CANONICALIZE_FIELD_NAMES (default: true)
- INTERN_FIELD_NAMES (default: true)