java.lang.Object | |
↳ | com.atlassian.jira.entity.remotelink.LazyJsonParser |
Lazy-loading JSON tree parser.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LazyJsonParser.ReadOnlyJsonNode | Provides the same functionality that a true JsonNode would, except that
the nodes may not be cast to their original mutable types, thereby protecting the
JSON data against modification. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the original JSON string.
| |||||||||||
Descends into the parsed JSON data by field names and extract the text value, if any, that is
provided at the specified sub-path.
| |||||||||||
Returns the root node of the parsed JSON as a
LazyJsonParser.ReadOnlyJsonNode . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Descends into the parsed JSON data by field names and extract the text value, if any, that is
provided at the specified sub-path. For example, given the JSON content:
Calling
{
"a" : {
"b" : 42,
"c" : {
"d" : "x",
"e" : true
}
}
}
getTextAsPath("a", "b", "c", "d")
would return "x"
. However,
any other call would return null
, as it would refer to a path that does not exist
or that contains a value that is not text.
fieldNames | the list of field names to descend into |
---|
null
if that location does not exist
or contains anything other than text
Returns the root node of the parsed JSON as a LazyJsonParser.ReadOnlyJsonNode
.
LazyJsonParser.ReadOnlyJsonNode
.