Add ObjectMapper.createParser()
and createGenerator()
methods
#2647
Milestone
ObjectMapper.createParser()
and createGenerator()
methods
#2647
Jackson 3.x will have direct
JsonParser
andJsonGenerator
construction methods inObjectMapper
(andObjectReader
,ObjectWriter
), as they are needed due to closer interaction between mapper and parser/generator.But even in 2.x pattern of
is quite common (ditto for generator). So it would probably make sense to add these methods both for convenience, and to offer upgrade path for code for eventual 2.x -> 3.0 migration, where direct access to
JsonFactory
, then calling on creation methods will not work as well (since it will not link read/write contexts properly).The text was updated successfully, but these errors were encountered: