| Package | Description |
|---|---|
| org.json |
The json package.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JSONArray
A JSONArray is an ordered sequence of values.
|
class |
JSONObject
A JSONObject is an unordered collection of name/value pairs.
|
| Modifier and Type | Method and Description |
|---|---|
JSONElement |
JSONElement.clone()
Clone the element.
|
static JSONElement |
JSONElement.fromString(java.lang.String value)
Creates a JSONElement from a String.
|
static JSONElement |
FileUtils.toJSONElement(java.io.File file)
Load a File as a JSONElement.
|
static JSONElement |
FileUtils.toJSONElement(java.io.File file,
JSONOptions options)
Load a File as a JSONElement.
|
static JSONElement |
FileUtils.toJSONElement(java.io.InputStream stream)
Load an InputStream as a JSONElement.
|
static JSONElement |
FileUtils.toJSONElement(java.io.InputStream stream,
JSONOptions options)
Load an InputStream as a JSONElement.
|
static JSONElement |
FileUtils.toJSONElement(java.net.URL url)
Load an URL as a JSONElement.
|
static JSONElement |
FileUtils.toJSONElement(java.net.URL url,
JSONOptions options)
Load an URL as a JSONElement.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
FileUtils.toFile(JSONElement element,
java.io.File file)
Save a JSONElement as a File.
|
static void |
FileUtils.toFile(JSONElement element,
java.io.File file,
JSONOptions options)
Save a JSONElement as a File.
|
static void |
FileUtils.toFile(JSONElement element,
java.io.File file,
java.lang.String var)
Save a JSONArray as a File, using a specified indentFactor and indent.
|
static void |
FileUtils.toFile(JSONElement element,
java.io.File file,
java.lang.String var,
JSONOptions options)
Save a JSONElement as a File.
|
static void |
FileUtils.toURL(JSONElement element,
java.net.URL url)
Save a JSONElement as an URL, using a specified indentFactor and indent.
|
static void |
FileUtils.toURL(JSONElement element,
java.net.URL url,
JSONOptions options)
Save a JSONElement as an URL, using a specified indentFactor and indent.
|
static void |
FileUtils.toURL(JSONElement element,
java.net.URL url,
java.lang.String var,
JSONOptions options)
Save a JSONElement as an URL, using a specified indentFactor and indent.
|
Copyright (C) 2017 Wei Song. Copyright (c) 2002 JSON.org. Copyright © 2018, 2019, 2026 Herve Girod. All Rights Reserved. elasticlunr Documentation and source under the MIT licence. JSON Documentation and source under the JSON licence