1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (1.8.0_162) on Tue Nov 05 19:39:09 PST 2019 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>BaseJsonNode (jackson-databind 2.10.0 API)</title> 8<meta name="date" content="2019-11-05"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="BaseJsonNode (jackson-databind 2.10.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":6,"i1":10,"i2":6,"i3":10,"i4":10,"i5":10,"i6":6,"i7":6,"i8":10,"i9":10,"i10":10,"i11":10}; 23var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; 24var altColor = "altColor"; 25var rowColor = "rowColor"; 26var tableTab = "tableTab"; 27var activeTableTab = "activeTableTab"; 28</script> 29<noscript> 30<div>JavaScript is disabled on your browser.</div> 31</noscript> 32<!-- ========= START OF TOP NAVBAR ======= --> 33<div class="topNav"><a name="navbar.top"> 34<!-- --> 35</a> 36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 37<a name="navbar.top.firstrow"> 38<!-- --> 39</a> 40<ul class="navList" title="Navigation"> 41<li><a href="../../../../../overview-summary.html">Overview</a></li> 42<li><a href="package-summary.html">Package</a></li> 43<li class="navBarCell1Rev">Class</li> 44<li><a href="class-use/BaseJsonNode.html">Use</a></li> 45<li><a href="package-tree.html">Tree</a></li> 46<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 47<li><a href="../../../../../index-all.html">Index</a></li> 48<li><a href="../../../../../help-doc.html">Help</a></li> 49</ul> 50</div> 51<div class="subNav"> 52<ul class="navList"> 53<li><a href="../../../../../com/fasterxml/jackson/databind/node/ArrayNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Prev Class</span></a></li> 54<li><a href="../../../../../com/fasterxml/jackson/databind/node/BigIntegerNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Next Class</span></a></li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/BaseJsonNode.html" target="_top">Frames</a></li> 58<li><a href="BaseJsonNode.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 62</ul> 63<div> 64<script type="text/javascript"><!-- 65 allClassesLink = document.getElementById("allclasses_navbar_top"); 66 if(window==top) { 67 allClassesLink.style.display = "block"; 68 } 69 else { 70 allClassesLink.style.display = "none"; 71 } 72 //--> 73</script> 74</div> 75<div> 76<ul class="subNavList"> 77<li>Summary: </li> 78<li>Nested | </li> 79<li>Field | </li> 80<li><a href="#constructor.summary">Constr</a> | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li>Field | </li> 86<li><a href="#constructor.detail">Constr</a> | </li> 87<li><a href="#method.detail">Method</a></li> 88</ul> 89</div> 90<a name="skip.navbar.top"> 91<!-- --> 92</a></div> 93<!-- ========= END OF TOP NAVBAR ========= --> 94<!-- ======== START OF CLASS DATA ======== --> 95<div class="header"> 96<div class="subTitle">com.fasterxml.jackson.databind.node</div> 97<h2 title="Class BaseJsonNode" class="title">Class BaseJsonNode</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 102<li> 103<ul class="inheritance"> 104<li><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonSerializable.Base</a></li> 105<li> 106<ul class="inheritance"> 107<li><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonNode</a></li> 108<li> 109<ul class="inheritance"> 110<li>com.fasterxml.jackson.databind.node.BaseJsonNode</li> 111</ul> 112</li> 113</ul> 114</li> 115</ul> 116</li> 117</ul> 118<div class="description"> 119<ul class="blockList"> 120<li class="blockList"> 121<dl> 122<dt>All Implemented Interfaces:</dt> 123<dd><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></dd> 124</dl> 125<dl> 126<dt>Direct Known Subclasses:</dt> 127<dd><a href="../../../../../com/fasterxml/jackson/databind/node/ContainerNode.html" title="class in com.fasterxml.jackson.databind.node">ContainerNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></dd> 128</dl> 129<hr> 130<br> 131<pre>public abstract class <span class="typeNameLabel">BaseJsonNode</span> 132extends <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> 133implements <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> 134<div class="block">Abstract base class common to all standard <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind"><code>JsonNode</code></a> 135 implementations. 136 The main addition here is that we declare that sub-classes must 137 implement <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><code>JsonSerializable</code></a>. 138 This simplifies object mapping aspects a bit, as no external serializers are needed. 139<p> 140 Since 2.10, all implements have been <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io"><code>Serializable</code></a>.</div> 141<dl> 142<dt><span class="seeLabel">See Also:</span></dt> 143<dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.node.BaseJsonNode">Serialized Form</a></dd> 144</dl> 145</li> 146</ul> 147</div> 148<div class="summary"> 149<ul class="blockList"> 150<li class="blockList"> 151<!-- ======== NESTED CLASS SUMMARY ======== --> 152<ul class="blockList"> 153<li class="blockList"><a name="nested.class.summary"> 154<!-- --> 155</a> 156<h3>Nested Class Summary</h3> 157<ul class="blockList"> 158<li class="blockList"><a name="nested.classes.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> 159<!-- --> 160</a> 161<h3>Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> 162<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 163</ul> 164</li> 165</ul> 166<!-- ======== CONSTRUCTOR SUMMARY ======== --> 167<ul class="blockList"> 168<li class="blockList"><a name="constructor.summary"> 169<!-- --> 170</a> 171<h3>Constructor Summary</h3> 172<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 173<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 174<tr> 175<th class="colFirst" scope="col">Modifier</th> 176<th class="colLast" scope="col">Constructor and Description</th> 177</tr> 178<tr class="altColor"> 179<td class="colFirst"><code>protected </code></td> 180<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#BaseJsonNode--">BaseJsonNode</a></span>()</code> </td> 181</tr> 182</table> 183</li> 184</ul> 185<!-- ========== METHOD SUMMARY =========== --> 186<ul class="blockList"> 187<li class="blockList"><a name="method.summary"> 188<!-- --> 189</a> 190<h3>Method Summary</h3> 191<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 192<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 193<tr> 194<th class="colFirst" scope="col">Modifier and Type</th> 195<th class="colLast" scope="col">Method and Description</th> 196</tr> 197<tr id="i0" class="altColor"> 198<td class="colFirst"><code>abstract <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a></code></td> 199<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#asToken--">asToken</a></span>()</code> 200<div class="block">Method that can be used for efficient type detection 201 when using stream abstraction for traversing nodes.</div> 202</td> 203</tr> 204<tr id="i1" class="rowColor"> 205<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 206<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findPath-java.lang.String-">findPath</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 207<div class="block">Method similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-"><code>JsonNode.findValue(java.lang.String)</code></a>, but that will return a 208 "missing node" instead of null if no field is found.</div> 209</td> 210</tr> 211<tr id="i2" class="altColor"> 212<td class="colFirst"><code>abstract int</code></td> 213<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#hashCode--">hashCode</a></span>()</code> </td> 214</tr> 215<tr id="i3" class="rowColor"> 216<td class="colFirst"><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.NumberType.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.NumberType</a></code></td> 217<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#numberType--">numberType</a></span>()</code> 218<div class="block">Returns code that identifies type of underlying numeric 219 value, if (and only if) node is a number node.</div> 220</td> 221</tr> 222<tr id="i4" class="altColor"> 223<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 224<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#required-int-">required</a></span>(int index)</code> 225<div class="block">Method is functionally equivalent to 226<code>path(index).required() 227</code> 228 and can be used to check that this node is an <code>ArrayNode</code> (that is, represents 229 JSON Array value) and has value for specified <code>index</code> 230 (but note that value may be explicit JSON null value).</div> 231</td> 232</tr> 233<tr id="i5" class="rowColor"> 234<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 235<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#required-java.lang.String-">required</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 236<div class="block">Method is functionally equivalent to 237<code>path(fieldName).required() 238</code> 239 and can be used to check that this node is an <code>ObjectNode</code> (that is, represents 240 JSON Object value) and has value for specified property with key <code>fieldName</code> 241 (but note that value may be explicit JSON null value).</div> 242</td> 243</tr> 244<tr id="i6" class="altColor"> 245<td class="colFirst"><code>abstract void</code></td> 246<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">serialize</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 247 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider)</code> 248<div class="block">Method called to serialize node instances using given generator.</div> 249</td> 250</tr> 251<tr id="i7" class="rowColor"> 252<td class="colFirst"><code>abstract void</code></td> 253<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-">serializeWithType</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 254 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider, 255 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer)</code> 256<div class="block">Type information is needed, even if JsonNode instances are "plain" JSON, 257 since they may be mixed with other types.</div> 258</td> 259</tr> 260<tr id="i8" class="altColor"> 261<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 262<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#toPrettyString--">toPrettyString</a></span>()</code> 263<div class="block">Alternative to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--"><code>JsonNode.toString()</code></a> that will serialize this node using 264 Jackson default pretty-printer.</div> 265</td> 266</tr> 267<tr id="i9" class="rowColor"> 268<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 269<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#toString--">toString</a></span>()</code> 270<div class="block">Method that will produce (as of Jackson 2.10) valid JSON using 271 default settings of databind, as String.</div> 272</td> 273</tr> 274<tr id="i10" class="altColor"> 275<td class="colFirst"><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a></code></td> 276<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse--">traverse</a></span>()</code> </td> 277</tr> 278<tr id="i11" class="rowColor"> 279<td class="colFirst"><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a></code></td> 280<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse-com.fasterxml.jackson.core.ObjectCodec-">traverse</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/ObjectCodec.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">ObjectCodec</a> codec)</code> </td> 281</tr> 282</table> 283<ul class="blockList"> 284<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonNode"> 285<!-- --> 286</a> 287<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></h3> 288<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_at-com.fasterxml.jackson.core.JsonPointer-">_at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_reportRequiredViolation-java.lang.String-java.lang.Object...-">_reportRequiredViolation</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_this--">_this</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean--">asBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean-boolean-">asBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble--">asDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble-double-">asDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--">asInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt-int-">asInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--">asLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong-long-">asLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--">asText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText-java.lang.String-">asText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at-com.fasterxml.jackson.core.JsonPointer-">at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at-java.lang.String-">at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue--">bigIntegerValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue--">binaryValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue--">booleanValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--">canConvertToInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong--">canConvertToLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue--">decimalValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#deepCopy--">deepCopy</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue--">doubleValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#elements--">elements</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.util.Comparator-com.fasterxml.jackson.databind.JsonNode-">equals</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.lang.Object-">equals</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames--">fieldNames</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fields--">fields</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParent-java.lang.String-">findParent</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents-java.lang.String-">findParents</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents-java.lang.String-java.util.List-">findParents</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-">findValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-">findValues</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-java.util.List-">findValues</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText-java.lang.String-">findValuesAsText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText-java.lang.String-java.util.List-">findValuesAsText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue--">floatValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-">get</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-">get</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType--">getNodeType</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-">has</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-">has</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-int-">hasNonNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-java.lang.String-">hasNonNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue--">intValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray--">isArray</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal--">isBigDecimal</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger--">isBigInteger</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary--">isBinary</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean--">isBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode--">isContainerNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble--">isDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isEmpty--">isEmpty</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloat--">isFloat</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber--">isFloatingPointNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt--">isInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber--">isIntegralNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong--">isLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--">isMissingNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull--">isNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--">isNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject--">isObject</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo--">isPojo</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isShort--">isShort</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--">isTextual</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--">isValueNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator--">iterator</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue--">longValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue--">numberValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#path-int-">path</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#path-java.lang.String-">path</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#require--">require</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-com.fasterxml.jackson.core.JsonPointer-">requiredAt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-java.lang.String-">requiredAt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requireNonNull--">requireNonNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue--">shortValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#size--">size</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue--">textValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#with-java.lang.String-">with</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray-java.lang.String-">withArray</a></code></li> 289</ul> 290<ul class="blockList"> 291<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable.Base"> 292<!-- --> 293</a> 294<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></h3> 295<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html#isEmpty-com.fasterxml.jackson.databind.SerializerProvider-">isEmpty</a></code></li> 296</ul> 297<ul class="blockList"> 298<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 299<!-- --> 300</a> 301<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 302<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 303</ul> 304<ul class="blockList"> 305<li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable"> 306<!-- --> 307</a> 308<h3>Methods inherited from interface java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a></h3> 309<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#forEach-java.util.function.Consumer-" title="class or interface in java.lang">forEach</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#spliterator--" title="class or interface in java.lang">spliterator</a></code></li> 310</ul> 311</li> 312</ul> 313</li> 314</ul> 315</div> 316<div class="details"> 317<ul class="blockList"> 318<li class="blockList"> 319<!-- ========= CONSTRUCTOR DETAIL ======== --> 320<ul class="blockList"> 321<li class="blockList"><a name="constructor.detail"> 322<!-- --> 323</a> 324<h3>Constructor Detail</h3> 325<a name="BaseJsonNode--"> 326<!-- --> 327</a> 328<ul class="blockListLast"> 329<li class="blockList"> 330<h4>BaseJsonNode</h4> 331<pre>protected BaseJsonNode()</pre> 332</li> 333</ul> 334</li> 335</ul> 336<!-- ============ METHOD DETAIL ========== --> 337<ul class="blockList"> 338<li class="blockList"><a name="method.detail"> 339<!-- --> 340</a> 341<h3>Method Detail</h3> 342<a name="findPath-java.lang.String-"> 343<!-- --> 344</a> 345<ul class="blockList"> 346<li class="blockList"> 347<h4>findPath</h4> 348<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findPath(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 349<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findPath-java.lang.String-">JsonNode</a></code></span></div> 350<div class="block">Method similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-"><code>JsonNode.findValue(java.lang.String)</code></a>, but that will return a 351 "missing node" instead of null if no field is found. Missing node 352 is a specific kind of node for which <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>JsonNode.isMissingNode()</code></a> 353 returns true; and all value access methods return empty or 354 missing value.</div> 355<dl> 356<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 357<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findPath-java.lang.String-">findPath</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 358<dt><span class="paramLabel">Parameters:</span></dt> 359<dd><code>fieldName</code> - Name of field to look for</dd> 360<dt><span class="returnLabel">Returns:</span></dt> 361<dd>Value of first matching node found; or if not found, a 362 "missing node" (non-null instance that has no value)</dd> 363</dl> 364</li> 365</ul> 366<a name="hashCode--"> 367<!-- --> 368</a> 369<ul class="blockList"> 370<li class="blockList"> 371<h4>hashCode</h4> 372<pre>public abstract int hashCode()</pre> 373<dl> 374<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 375<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> 376</dl> 377</li> 378</ul> 379<a name="required-java.lang.String-"> 380<!-- --> 381</a> 382<ul class="blockList"> 383<li class="blockList"> 384<h4>required</h4> 385<pre>public <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> required(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 386<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#required-java.lang.String-">JsonNode</a></code></span></div> 387<div class="block">Method is functionally equivalent to 388<code>path(fieldName).required() 389</code> 390 and can be used to check that this node is an <code>ObjectNode</code> (that is, represents 391 JSON Object value) and has value for specified property with key <code>fieldName</code> 392 (but note that value may be explicit JSON null value). 393 If this node is Object Node and has value for specified property, <code>this</code> is returned 394 to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> 395<dl> 396<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 397<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#required-java.lang.String-">required</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 398<dt><span class="returnLabel">Returns:</span></dt> 399<dd><code>this</code> node to allow chaining</dd> 400</dl> 401</li> 402</ul> 403<a name="required-int-"> 404<!-- --> 405</a> 406<ul class="blockList"> 407<li class="blockList"> 408<h4>required</h4> 409<pre>public <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> required(int index)</pre> 410<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#required-int-">JsonNode</a></code></span></div> 411<div class="block">Method is functionally equivalent to 412<code>path(index).required() 413</code> 414 and can be used to check that this node is an <code>ArrayNode</code> (that is, represents 415 JSON Array value) and has value for specified <code>index</code> 416 (but note that value may be explicit JSON null value). 417 If this node is Array Node and has value for specified index, <code>this</code> is returned 418 to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> 419<dl> 420<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 421<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#required-int-">required</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 422<dt><span class="returnLabel">Returns:</span></dt> 423<dd><code>this</code> node to allow chaining</dd> 424</dl> 425</li> 426</ul> 427<a name="traverse--"> 428<!-- --> 429</a> 430<ul class="blockList"> 431<li class="blockList"> 432<h4>traverse</h4> 433<pre>public <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a> traverse()</pre> 434<dl> 435<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 436<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse--" title="class or interface in com.fasterxml.jackson.core">traverse</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 437</dl> 438</li> 439</ul> 440<a name="traverse-com.fasterxml.jackson.core.ObjectCodec-"> 441<!-- --> 442</a> 443<ul class="blockList"> 444<li class="blockList"> 445<h4>traverse</h4> 446<pre>public <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a> traverse(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/ObjectCodec.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">ObjectCodec</a> codec)</pre> 447<dl> 448<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 449<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse-com.fasterxml.jackson.core.ObjectCodec-" title="class or interface in com.fasterxml.jackson.core">traverse</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 450</dl> 451</li> 452</ul> 453<a name="asToken--"> 454<!-- --> 455</a> 456<ul class="blockList"> 457<li class="blockList"> 458<h4>asToken</h4> 459<pre>public abstract <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a> asToken()</pre> 460<div class="block">Method that can be used for efficient type detection 461 when using stream abstraction for traversing nodes. 462 Will return the first <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonToken</code></a> that equivalent 463 stream event would produce (for most nodes there is just 464 one token but for structured/container types multiple)</div> 465<dl> 466<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 467<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#asToken--" title="class or interface in com.fasterxml.jackson.core">asToken</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 468</dl> 469</li> 470</ul> 471<a name="numberType--"> 472<!-- --> 473</a> 474<ul class="blockList"> 475<li class="blockList"> 476<h4>numberType</h4> 477<pre>public <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.NumberType.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.NumberType</a> numberType()</pre> 478<div class="block">Returns code that identifies type of underlying numeric 479 value, if (and only if) node is a number node.</div> 480<dl> 481<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 482<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#numberType--" title="class or interface in com.fasterxml.jackson.core">numberType</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 483</dl> 484</li> 485</ul> 486<a name="serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-"> 487<!-- --> 488</a> 489<ul class="blockList"> 490<li class="blockList"> 491<h4>serialize</h4> 492<pre>public abstract void serialize(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 493 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider) 494 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 495 <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre> 496<div class="block">Method called to serialize node instances using given generator.</div> 497<dl> 498<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 499<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">serialize</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 500<dt><span class="throwsLabel">Throws:</span></dt> 501<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 502<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd> 503</dl> 504</li> 505</ul> 506<a name="serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-"> 507<!-- --> 508</a> 509<ul class="blockList"> 510<li class="blockList"> 511<h4>serializeWithType</h4> 512<pre>public abstract void serializeWithType(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 513 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider, 514 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer) 515 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 516 <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre> 517<div class="block">Type information is needed, even if JsonNode instances are "plain" JSON, 518 since they may be mixed with other types.</div> 519<dl> 520<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 521<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-">serializeWithType</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 522<dt><span class="throwsLabel">Throws:</span></dt> 523<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 524<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd> 525</dl> 526</li> 527</ul> 528<a name="toString--"> 529<!-- --> 530</a> 531<ul class="blockList"> 532<li class="blockList"> 533<h4>toString</h4> 534<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> 535<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--">JsonNode</a></code></span></div> 536<div class="block">Method that will produce (as of Jackson 2.10) valid JSON using 537 default settings of databind, as String. 538 If you want other kinds of JSON output (or output formatted using one of 539 other Jackson-supported data formats) make sure to use 540 <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> or <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> to serialize an 541 instance, for example: 542<pre> 543 String json = objectMapper.writeValueAsString(rootNode); 544</pre> 545<p> 546 Note: method defined as abstract to ensure all implementation 547 classes explicitly implement method, instead of relying 548 on <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang"><code>Object.toString()</code></a> definition.</div> 549<dl> 550<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 551<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--">toString</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 552</dl> 553</li> 554</ul> 555<a name="toPrettyString--"> 556<!-- --> 557</a> 558<ul class="blockListLast"> 559<li class="blockList"> 560<h4>toPrettyString</h4> 561<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toPrettyString()</pre> 562<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#toPrettyString--">JsonNode</a></code></span></div> 563<div class="block">Alternative to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--"><code>JsonNode.toString()</code></a> that will serialize this node using 564 Jackson default pretty-printer.</div> 565<dl> 566<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 567<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#toPrettyString--">toPrettyString</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 568</dl> 569</li> 570</ul> 571</li> 572</ul> 573</li> 574</ul> 575</div> 576</div> 577<!-- ========= END OF CLASS DATA ========= --> 578<!-- ======= START OF BOTTOM NAVBAR ====== --> 579<div class="bottomNav"><a name="navbar.bottom"> 580<!-- --> 581</a> 582<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 583<a name="navbar.bottom.firstrow"> 584<!-- --> 585</a> 586<ul class="navList" title="Navigation"> 587<li><a href="../../../../../overview-summary.html">Overview</a></li> 588<li><a href="package-summary.html">Package</a></li> 589<li class="navBarCell1Rev">Class</li> 590<li><a href="class-use/BaseJsonNode.html">Use</a></li> 591<li><a href="package-tree.html">Tree</a></li> 592<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 593<li><a href="../../../../../index-all.html">Index</a></li> 594<li><a href="../../../../../help-doc.html">Help</a></li> 595</ul> 596</div> 597<div class="subNav"> 598<ul class="navList"> 599<li><a href="../../../../../com/fasterxml/jackson/databind/node/ArrayNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Prev Class</span></a></li> 600<li><a href="../../../../../com/fasterxml/jackson/databind/node/BigIntegerNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Next Class</span></a></li> 601</ul> 602<ul class="navList"> 603<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/BaseJsonNode.html" target="_top">Frames</a></li> 604<li><a href="BaseJsonNode.html" target="_top">No Frames</a></li> 605</ul> 606<ul class="navList" id="allclasses_navbar_bottom"> 607<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 608</ul> 609<div> 610<script type="text/javascript"><!-- 611 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 612 if(window==top) { 613 allClassesLink.style.display = "block"; 614 } 615 else { 616 allClassesLink.style.display = "none"; 617 } 618 //--> 619</script> 620</div> 621<div> 622<ul class="subNavList"> 623<li>Summary: </li> 624<li>Nested | </li> 625<li>Field | </li> 626<li><a href="#constructor.summary">Constr</a> | </li> 627<li><a href="#method.summary">Method</a></li> 628</ul> 629<ul class="subNavList"> 630<li>Detail: </li> 631<li>Field | </li> 632<li><a href="#constructor.detail">Constr</a> | </li> 633<li><a href="#method.detail">Method</a></li> 634</ul> 635</div> 636<a name="skip.navbar.bottom"> 637<!-- --> 638</a></div> 639<!-- ======== END OF BOTTOM NAVBAR ======= --> 640<p class="legalCopy"><small>Copyright © 2008–2019 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 641</body> 642</html> 643