| 1 | /* |
| 2 | * Copyright (c) 2011, 2021 Oracle and/or its affiliates. All rights reserved. |
| 3 | * |
| 4 | * This program and the accompanying materials are made available under the |
| 5 | * terms of the Eclipse Public License v. 2.0, which is available at |
| 6 | * http://www.eclipse.org/legal/epl-2.0. |
| 7 | * |
| 8 | * This Source Code may also be made available under the following Secondary |
| 9 | * Licenses when the conditions for such availability set forth in the |
| 10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| 11 | * version 2 with the GNU Classpath Exception, which is available at |
| 12 | * https://www.gnu.org/software/classpath/license.html. |
| 13 | * |
| 14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| 15 | */ |
| 16 | |
| 17 | /** |
| 18 | * Provides an object model API to process <a href="http://json.org/">JSON</a>. |
| 19 | * |
| 20 | * <p>The object model API is a high-level API that provides immutable object |
| 21 | * models for JSON object and array structures. These JSON structures are |
| 22 | * represented as object models using the Java types {@link jakarta.json.JsonObject} |
| 23 | * and {@link jakarta.json.JsonArray}. The interface {@code jakarta.json.JsonObject} provides |
| 24 | * a {@link java.util.Map} view to access the unordered collection of zero or |
| 25 | * more name/value pairs from the model. Similarly, the interface |
| 26 | * {@code JsonArray} provides a {@link java.util.List} view to access the |
| 27 | * ordered sequence of zero or more values from the model. |
| 28 | * |
| 29 | * <p>The object model API uses builder patterns to create and modify |
| 30 | * these object models. The classes {@link jakarta.json.JsonObjectBuilder} and |
| 31 | * {@link jakarta.json.JsonArrayBuilder} provide methods to create and modify models |
| 32 | * of type {@code JsonObject} and {@code JsonArray} respectively. |
| 33 | * |
| 34 | * <p>These object models can also be created from an input source using |
| 35 | * the class {@link jakarta.json.JsonReader}. Similarly, these object models |
| 36 | * can be written to an output source using the class {@link jakarta.json.JsonWriter}. |
| 37 | * <p> |
| 38 | * This package includes several classes that implement other JSON related |
| 39 | * standards: <a href="http://tools.ietf.org/html/rfc6901">JSON Pointer</a>, |
| 40 | * <a Href="http://tools.ietf.org/html/rfc6902">JSON Patch</a>, and |
| 41 | * <a Href="http://tools.ietf.org/html/rfc7396">JSON Merge Patch</a>. |
| 42 | * They can be used to retrieve, transform or manipulate values in an |
| 43 | * object model. |
| 44 | */ |
| 45 | package jakarta.json; |