Rename TextNode
as StringNode
; JsonNode.xxxTextYyy()
(mostly) as JsonNode.xxxStringYyy()
[JSTEP-3]
#4879
Labels
3.0
Issue planned for initial 3.0 release
As per JSTEP-3 (and related to JSTEP-6) we want to unify naming of types and accessors: Jackson 2.x uses "Text" instead of "String" (unlike everything else in Jackson 2.x API), so with 3.0 we can fix the discrepancy.
So we will:
TextNode
asStringNode
(it is unlikely actual type often referred to in application code)JsonNode
accessor methods to use "String" instead of "Text" in most cases; deprecated+add in othersWhat this specifically means is that we'll change:
asText()
/asText(String)
: deprecate, addasString()
/asString(String)
findValuesAsText()
: rename asfindValuesAsString()
isTextual()
: deprecate, addisString()
textValue()
: rename asstringValue()
The text was updated successfully, but these errors were encountered: