/usr/share/doc/libjenkins-json-java/api/net/sf/json/class-use/JSONObject.html is in libjenkins-json-java-doc 2.4-jenkins-3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Mon Dec 23 05:14:54 UTC 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Class net.sf.json.JSONObject (json-lib 2.4-jenkins-3 API)</title>
<meta name="date" content="2013-12-23">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class net.sf.json.JSONObject (json-lib 2.4-jenkins-3 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?net/sf/json/class-use/JSONObject.html" target="_top">Frames</a></li>
<li><a href="JSONObject.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class net.sf.json.JSONObject" class="title">Uses of Class<br>net.sf.json.JSONObject</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#net.sf.json">net.sf.json</a></td>
<td class="colLast">
<div class="block">The core of the library</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#net.sf.json.processors">net.sf.json.processors</a></td>
<td class="colLast">
<div class="block">Support for custom serialization</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#net.sf.json.test">net.sf.json.test</a></td>
<td class="colLast">
<div class="block">Testing utilities</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#net.sf.json.util">net.sf.json.util</a></td>
<td class="colLast">
<div class="block">Miscelaneous utilities</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="net.sf.json">
<!-- -->
</a>
<h3>Uses of <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> in <a href="../../../../net/sf/json/package-summary.html">net.sf.json</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../net/sf/json/package-summary.html">net.sf.json</a> that return <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#accumulate(java.lang.String, boolean)">accumulate</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
boolean value)</code>
<div class="block">Accumulate values under a key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#accumulate(java.lang.String, double)">accumulate</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
double value)</code>
<div class="block">Accumulate values under a key.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#accumulate(java.lang.String, int)">accumulate</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
int value)</code>
<div class="block">Accumulate values under a key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#accumulate(java.lang.String, long)">accumulate</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
long value)</code>
<div class="block">Accumulate values under a key.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#accumulate(java.lang.String, java.lang.Object)">accumulate</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Accumulate values under a key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#accumulate(java.lang.String, java.lang.Object, net.sf.json.JsonConfig)">accumulate</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Accumulate values under a key.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#discard(java.lang.String)">discard</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code>
<div class="block">Remove a name and its value, if present.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, boolean)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
boolean value)</code>
<div class="block">Put a key/boolean pair in the JSONObject.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, java.util.Collection)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a> value)</code>
<div class="block">Put a key/value pair in the JSONObject, where the value will be a
JSONArray which is produced from a Collection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, java.util.Collection, net.sf.json.JsonConfig)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a> value,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Put a key/value pair in the JSONObject, where the value will be a
JSONArray which is produced from a Collection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, double)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
double value)</code>
<div class="block">Put a key/double pair in the JSONObject.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, int)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
int value)</code>
<div class="block">Put a key/int pair in the JSONObject.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, long)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
long value)</code>
<div class="block">Put a key/long pair in the JSONObject.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, java.util.Map)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a> value)</code>
<div class="block">Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, java.util.Map, net.sf.json.JsonConfig)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a> value,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, java.lang.Object)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Put a key/value pair in the JSONObject.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#element(java.lang.String, java.lang.Object, net.sf.json.JsonConfig)">element</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Put a key/value pair in the JSONObject.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#elementOpt(java.lang.String, java.lang.Object)">elementOpt</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code>
<div class="block">Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#elementOpt(java.lang.String, java.lang.Object, net.sf.json.JsonConfig)">elementOpt</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#fromObject(java.lang.Object)">fromObject</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object)</code>
<div class="block">Creates a JSONObject.<br>
Inspects the object type to call the correct JSONObject factory method.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#fromObject(java.lang.Object, net.sf.json.JsonConfig)">fromObject</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Creates a JSONObject.<br>
Inspects the object type to call the correct JSONObject factory method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONArray.</span><code><strong><a href="../../../../net/sf/json/JSONArray.html#getJSONObject(int)">getJSONObject</a></strong>(int index)</code>
<div class="block">Get the JSONObject associated with an index.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#getJSONObject(java.lang.String)">getJSONObject</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code>
<div class="block">Get the JSONObject value associated with a key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONArray.</span><code><strong><a href="../../../../net/sf/json/JSONArray.html#optJSONObject(int)">optJSONObject</a></strong>(int index)</code>
<div class="block">Get the optional JSONObject associated with an index.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#optJSONObject(java.lang.String)">optJSONObject</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code>
<div class="block">Get an optional JSONObject associated with a key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JSONArray.</span><code><strong><a href="../../../../net/sf/json/JSONArray.html#toJSONObject(net.sf.json.JSONArray)">toJSONObject</a></strong>(<a href="../../../../net/sf/json/JSONArray.html" title="class in net.sf.json">JSONArray</a> names)</code>
<div class="block">Produce a JSONObject by combining a JSONArray of names with the values of
this JSONArray.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../net/sf/json/package-summary.html">net.sf.json</a> with parameters of type <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONArray.html" title="class in net.sf.json">JSONArray</a></code></td>
<td class="colLast"><span class="strong">JSONArray.</span><code><strong><a href="../../../../net/sf/json/JSONArray.html#element(net.sf.json.JSONObject)">element</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> value)</code>
<div class="block">Append an JSON value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#toBean(net.sf.json.JSONObject)">toBean</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> jsonObject)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#toBean(net.sf.json.JSONObject, java.lang.Class)">toBean</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> jsonObject,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a> beanClass)</code>
<div class="block">Creates a bean from a JSONObject, with a specific target class.<br></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#toBean(net.sf.json.JSONObject, java.lang.Class, java.util.Map)">toBean</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> jsonObject,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a> beanClass,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a> classMap)</code>
<div class="block">Creates a bean from a JSONObject, with a specific target class.<br>
If beanClass is null, this method will return a graph of DynaBeans.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#toBean(net.sf.json.JSONObject, net.sf.json.JsonConfig)">toBean</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> jsonObject,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Creates a bean from a JSONObject, with the specific configuration.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><span class="strong">JSONObject.</span><code><strong><a href="../../../../net/sf/json/JSONObject.html#toBean(net.sf.json.JSONObject, java.lang.Object, net.sf.json.JsonConfig)">toBean</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> jsonObject,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> bean,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Creates a bean from a JSONObject, with the specific configuration.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="net.sf.json.processors">
<!-- -->
</a>
<h3>Uses of <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> in <a href="../../../../net/sf/json/processors/package-summary.html">net.sf.json.processors</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../net/sf/json/processors/package-summary.html">net.sf.json.processors</a> that return <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JsonBeanProcessor.</span><code><strong><a href="../../../../net/sf/json/processors/JsonBeanProcessor.html#processBean(java.lang.Object, net.sf.json.JsonConfig)">processBean</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> bean,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Processes the bean an returns a suitable JSONObject representation.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">JsDateJsonBeanProcessor.</span><code><strong><a href="../../../../net/sf/json/processors/JsDateJsonBeanProcessor.html#processBean(java.lang.Object, net.sf.json.JsonConfig)">processBean</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> bean,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Processes the input bean into a compatible JsDate.<br></div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="net.sf.json.test">
<!-- -->
</a>
<h3>Uses of <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> in <a href="../../../../net/sf/json/test/package-summary.html">net.sf.json.test</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../net/sf/json/test/package-summary.html">net.sf.json.test</a> with parameters of type <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><span class="strong">JSONAssert.</span><code><strong><a href="../../../../net/sf/json/test/JSONAssert.html#assertEquals(net.sf.json.JSONObject, net.sf.json.JSONObject)">assertEquals</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> expected,
<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> actual)</code>
<div class="block">Asserts that two JSONObjects are equal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><span class="strong">JSONAssert.</span><code><strong><a href="../../../../net/sf/json/test/JSONAssert.html#assertEquals(net.sf.json.JSONObject, java.lang.String)">assertEquals</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> expected,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> actual)</code>
<div class="block">Asserts that two JSONObjects are equal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><span class="strong">JSONAssert.</span><code><strong><a href="../../../../net/sf/json/test/JSONAssert.html#assertEquals(java.lang.String, net.sf.json.JSONObject)">assertEquals</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> expected,
<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> actual)</code>
<div class="block">Asserts that two JSONObjects are equal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><span class="strong">JSONAssert.</span><code><strong><a href="../../../../net/sf/json/test/JSONAssert.html#assertEquals(java.lang.String, net.sf.json.JSONObject, net.sf.json.JSONObject)">assertEquals</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> message,
<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> expected,
<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> actual)</code>
<div class="block">Asserts that two JSONObjects are equal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><span class="strong">JSONAssert.</span><code><strong><a href="../../../../net/sf/json/test/JSONAssert.html#assertEquals(java.lang.String, net.sf.json.JSONObject, java.lang.String)">assertEquals</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> message,
<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> expected,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> actual)</code>
<div class="block">Asserts that two JSONObjects are equal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><span class="strong">JSONAssert.</span><code><strong><a href="../../../../net/sf/json/test/JSONAssert.html#assertEquals(java.lang.String, java.lang.String, net.sf.json.JSONObject)">assertEquals</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> message,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> expected,
<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> actual)</code>
<div class="block">Asserts that two JSONObjects are equal.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="net.sf.json.util">
<!-- -->
</a>
<h3>Uses of <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> in <a href="../../../../net/sf/json/util/package-summary.html">net.sf.json.util</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../net/sf/json/util/package-summary.html">net.sf.json.util</a> declared as <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">CycleDetectionStrategy.</span><code><strong><a href="../../../../net/sf/json/util/CycleDetectionStrategy.html#IGNORE_PROPERTY_OBJ">IGNORE_PROPERTY_OBJ</a></strong></code> </td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../net/sf/json/util/package-summary.html">net.sf.json.util</a> that return <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></code></td>
<td class="colLast"><span class="strong">CycleDetectionStrategy.</span><code><strong><a href="../../../../net/sf/json/util/CycleDetectionStrategy.html#handleRepeatedReferenceAsObject(java.lang.Object)">handleRepeatedReferenceAsObject</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> reference)</code>
<div class="block">Handle a repeated reference<br>
Must return a valid JSONObject or null.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../net/sf/json/util/package-summary.html">net.sf.json.util</a> with parameters of type <a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></code></td>
<td class="colLast"><span class="strong">JSONUtils.</span><code><strong><a href="../../../../net/sf/json/util/JSONUtils.html#getProperties(net.sf.json.JSONObject)">getProperties</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> jsonObject)</code>
<div class="block">Creates a Map with all the properties of the JSONObject.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static org.apache.commons.beanutils.DynaBean</code></td>
<td class="colLast"><span class="strong">JSONUtils.</span><code><strong><a href="../../../../net/sf/json/util/JSONUtils.html#newDynaBean(net.sf.json.JSONObject)">newDynaBean</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> jsonObject)</code>
<div class="block">Creates a new MorphDynaBean from a JSONObject.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static org.apache.commons.beanutils.DynaBean</code></td>
<td class="colLast"><span class="strong">JSONUtils.</span><code><strong><a href="../../../../net/sf/json/util/JSONUtils.html#newDynaBean(net.sf.json.JSONObject, net.sf.json.JsonConfig)">newDynaBean</a></strong>(<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> jsonObject,
<a href="../../../../net/sf/json/JsonConfig.html" title="class in net.sf.json">JsonConfig</a> jsonConfig)</code>
<div class="block">Creates a new MorphDynaBean from a JSONObject.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><span class="strong">NewBeanInstanceStrategy.</span><code><strong><a href="../../../../net/sf/json/util/NewBeanInstanceStrategy.html#newInstance(java.lang.Class, net.sf.json.JSONObject)">newInstance</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a> target,
<a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">JSONObject</a> source)</code>
<div class="block">Creates a new instance.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../net/sf/json/JSONObject.html" title="class in net.sf.json">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?net/sf/json/class-use/JSONObject.html" target="_top">Frames</a></li>
<li><a href="JSONObject.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2006–2013 <a href="http://json-lib.sourceforge.net">Json-lib</a>. All rights reserved.</small></p>
</body>
</html>
|