A B C D E F G H I J K L N O P Q R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(Object) - Method in class at.syntaxerror.json5.JSONArray
-
Adds a value to the JSONArray
- addAll(JSONArray) - Method in class at.syntaxerror.json5.JSONArray
-
Adds the values of the given JSONArray to this JSONArray.
- addAllDeep(JSONArray) - Method in class at.syntaxerror.json5.JSONArray
-
Adds the value of the given JSONArray to this JSONArray.
- allowBinaryLiterals(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether binary literals (
0b10101...
) should be allowed - allowCDigitSeparators(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether C-style digit separators (
123'456
) should be allowed - allowHexFloatingLiterals(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether hexadecimal floating-point literals (e.g.
- allowInfinity(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether
Infinity
should be allowed as a number. - allowInvalidSurrogates(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether invalid unicode surrogate pairs should be allowed
- allowJavaDigitSeparators(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether Java-style digit separators (
123_456
) should be allowed - allowLongUnicodeEscapes(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether 32-bit unicode escape sequences (
\U00123456
) should be allowed - allowNaN(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether
NaN
should be allowed as a number - allowOctalLiterals(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether octal literals (
0o567...
) should be allowed - allowTrailingData(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Specifies whether trailing data should be allowed.
Iffalse
, parsing the following will produce an error due to the trailingabc
: - at.syntaxerror.json5 - package at.syntaxerror.json5
B
- back() - Method in class at.syntaxerror.json5.JSONParser
-
Forces the parser to re-read the last character
- build() - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
- builder() - Static method in class at.syntaxerror.json5.JSONOptions
C
- charToString(char) - Static method in class at.syntaxerror.json5.JSONParser
-
Converts a character into a string representation: if
c == 0
,"EOF"
is returned ifc
fulfills one of the following conditions,"'x'"
is returned, wherex
is the value returned byCharacter.toString(char)
: ifc
is an extended ASCII character (U+0001-U+00FF
), exceptcontrol characters
ifc
is aUnicode letter
ifc
is aUnicode digit
otherwise,"U+XXXX"
is returned, whereXXXX
is the uppercase hexadecimal representation ofc
's Unicode codepoint, padded with zeros (0
) to a length of 4 characters - clear() - Method in class at.syntaxerror.json5.JSONArray
-
Removes all values from this JSONArray
- clear() - Method in class at.syntaxerror.json5.JSONObject
-
Removes all values from this JSONObject
- compute(String, BiFunction<String, Object, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeArray(String, BiFunction<String, JSONArray, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeArrayIfPresent(String, BiFunction<String, JSONArray, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeBoolean(String, BiFunction<String, Boolean, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeBooleanIfPresent(String, BiFunction<String, Boolean, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeByte(String, BiFunction<String, Byte, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeByteExact(String, BiFunction<String, Byte, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeByteExactIfPresent(String, BiFunction<String, Byte, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeByteIfPresent(String, BiFunction<String, Byte, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeDouble(String, BiFunction<String, Double, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeDoubleExact(String, BiFunction<String, Double, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeDoubleExactIfPresent(String, BiFunction<String, Double, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeDoubleIfPresent(String, BiFunction<String, Double, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeFloat(String, BiFunction<String, Float, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeFloatExact(String, BiFunction<String, Float, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeFloatExactIfPresent(String, BiFunction<String, Float, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeFloatIfPresent(String, BiFunction<String, Float, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeIfAbsent(String, Function<String, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Associates the value returned by the mapping function with the given key if the key is not already associated with a value.
- computeIfPresent(String, BiFunction<String, Object, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeInstant(String, BiFunction<String, Instant, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeInstantIfPresent(String, BiFunction<String, Instant, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeInt(String, BiFunction<String, Integer, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeIntExact(String, BiFunction<String, Integer, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeIntExactIfPresent(String, BiFunction<String, Integer, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeIntIfPresent(String, BiFunction<String, Integer, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeLong(String, BiFunction<String, Long, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeLongExact(String, BiFunction<String, Long, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeLongExactIfPresent(String, BiFunction<String, Long, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeLongIfPresent(String, BiFunction<String, Long, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeObject(String, BiFunction<String, JSONObject, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeObjectIfPresent(String, BiFunction<String, JSONObject, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeShort(String, BiFunction<String, Short, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeShortExact(String, BiFunction<String, Short, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces or sets the value associated with the given key with the value returned by the remapping function.
- computeShortExactIfPresent(String, BiFunction<String, Short, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- computeShortIfPresent(String, BiFunction<String, Short, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Replaces the value associated with the given key with the value returned by the remapping function.
- copy() - Method in class at.syntaxerror.json5.JSONArray
-
Creates a shallow copy of the JSONArray
- copy() - Method in class at.syntaxerror.json5.JSONObject
-
Creates a shallow copy of the JSONObject
D
- deepCopy() - Method in class at.syntaxerror.json5.JSONArray
-
Creates a deep copy of the JSONArray
- deepCopy() - Method in class at.syntaxerror.json5.JSONObject
-
Creates a deep copy of the JSONObject
- deepSublist(int, int) - Method in class at.syntaxerror.json5.JSONArray
-
Creates a deep copy of part of the JSONArray.
- DUPLICATE - at.syntaxerror.json5.JSONOptions.DuplicateBehavior
-
Wraps duplicate values inside an
array
, effectively treating them as if they were declared as one - duplicateBehaviour(JSONOptions.DuplicateBehavior) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Specifies the behavior when the same key is encountered multiple times within the same
JSONObject
E
- entrySet() - Method in class at.syntaxerror.json5.JSONArray
-
Returns a collection of values of the JSONArray.
- entrySet() - Method in class at.syntaxerror.json5.JSONObject
-
Returns a set of entries of the JSONObject.
F
- forEach(BiConsumer<Integer, Object>) - Method in class at.syntaxerror.json5.JSONArray
-
Iterates over the whole JSONArray and performs the given action for each element.
- forEach(BiConsumer<String, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Iterates over the whole JSONObject and performs the given action for each element.
G
- get(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value for a given index
- get(int, Object) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value for a given index, or the default value if the operation is not possible
- get(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value for a given key
- get(String, Object) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value for a given key, or the default value if the operation is not possible
- getArray(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a JSONArray for a given index
- getArray(int, JSONArray) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a JSONArray for a given index, or the default value if the operation is not possible
- getArray(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a JSONArray for a given key
- getArray(String, JSONArray) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a JSONArray for a given key, or the default value if the operation is not possible
- getBoolean(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a boolean for a given index
- getBoolean(int, boolean) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a boolean for a given index, or the default value if the operation is not possible
- getBoolean(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a boolean for a given key
- getBoolean(String, boolean) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a boolean for a given key, or the default value if the operation is not possible
- getByte(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a byte for a given index
- getByte(int, byte) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a byte for a given index, or the default value if the operation is not possible
- getByte(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a byte for a given key
- getByte(String, byte) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a byte for a given key, or the default value if the operation is not possible
- getByteExact(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a byte for a given index.
- getByteExact(int, byte) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a byte for a given index, or the default value if the operation is not possible
- getByteExact(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a byte for a given key.
- getByteExact(String, byte) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a byte for a given key, or the default value if the operation is not possible
- getDefaultOptions() - Static method in class at.syntaxerror.json5.JSONOptions
-
Returns the default options for parsing and stringifying
- getDouble(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a double for a given index
- getDouble(int, double) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a double for a given index, or the default value if the operation is not possible
- getDouble(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a double for a given key
- getDouble(String, double) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a double for a given key, or the default value if the operation is not possible
- getDoubleExact(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a double for a given index.
- getDoubleExact(int, double) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a double for a given index, or the default value if the operation is not possible
- getDoubleExact(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a double for a given key.
- getDoubleExact(String, double) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a double for a given key, or the default value if the operation is not possible
- getDuplicateBehaviour() - Method in class at.syntaxerror.json5.JSONOptions
-
Specifies the behavior when the same key is encountered multiple times within the same
JSONObject
- getFloat(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a float for a given index
- getFloat(int, float) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a float for a given index, or the default value if the operation is not possible
- getFloat(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a float for a given key
- getFloat(String, float) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a float for a given key, or the default value if the operation is not possible
- getFloatExact(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a float for a given index.
- getFloatExact(int, float) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a float for a given index, or the default value if the operation is not possible
- getFloatExact(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a float for a given key.
- getFloatExact(String, float) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a float for a given key, or the default value if the operation is not possible
- getInstant(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as an Instant for a given index
- getInstant(int, Instant) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as an Instant for a given index, or the default value if the operation is not possible
- getInstant(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as an Instant for a given key.
- getInstant(String, Instant) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as an Instant for a given key, or the default value if the operation is not possible
- getInt(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as an int for a given index
- getInt(int, int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as an int for a given index, or the default value if the operation is not possible
- getInt(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as an int for a given key
- getInt(String, int) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as an int for a given key, or the default value if the operation is not possible
- getIntExact(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as an int for a given index.
- getIntExact(int, int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as an int for a given index, or the default value if the operation is not possible
- getIntExact(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as an int for a given key.
- getIntExact(String, int) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as an int for a given key, or the default value if the operation is not possible
- getLong(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a long for a given index
- getLong(int, long) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a long for a given index, or the default value if the operation is not possible
- getLong(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a long for a given key
- getLong(String, long) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a long for a given key, or the default value if the operation is not possible
- getLongExact(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a long for a given index.
- getLongExact(int, long) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a long for a given index, or the default value if the operation is not possible
- getLongExact(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a long for a given key.
- getLongExact(String, long) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a long for a given key, or the default value if the operation is not possible
- getNumber(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a number for a given index
- getNumber(int, Number) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a number for a given index, or the default value if the operation is not possible
- getNumber(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a number for a given key
- getNumber(String, Number) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a number for a given key, or the default value if the operation is not possible
- getObject(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a JSONObject for a given index
- getObject(int, JSONObject) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a JSONObject for a given index, or the default value if the operation is not possible
- getObject(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a JSONObject for a given key
- getObject(String, JSONObject) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a JSONObject for a given key, or the default value if the operation is not possible
- getShort(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a short for a given index
- getShort(int, short) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a short for a given index, or the default value if the operation is not possible
- getShort(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a short for a given key
- getShort(String, short) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a short for a given key, or the default value if the operation is not possible
- getShortExact(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a short for a given index.
- getShortExact(int, short) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the exact value as a short for a given index, or the default value if the operation is not possible
- getShortExact(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a short for a given key.
- getShortExact(String, short) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the exact value as a short for a given key, or the default value if the operation is not possible
- getString(int) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a string for a given index
- getString(int, String) - Method in class at.syntaxerror.json5.JSONArray
-
Returns the value as a string for a given index, or the default value if the operation is not possible
- getString(String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a string for a given key
- getString(String, String) - Method in class at.syntaxerror.json5.JSONObject
-
Returns the value as a string for a given key, or the default value if the operation is not possible
H
- has(String) - Method in class at.syntaxerror.json5.JSONObject
-
Checks if a key exists within the JSONObject
I
- insert(int, Object) - Method in class at.syntaxerror.json5.JSONArray
-
Inserts a value to the JSONArray at a given index
- isAllowBinaryLiterals() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether binary literals (
0b10101...
) should be allowed - isAllowCDigitSeparators() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether C-style digit separators (
123'456
) should be allowed - isAllowHexFloatingLiterals() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether hexadecimal floating-point literals (e.g.
- isAllowInfinity() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether
Infinity
should be allowed as a number. - isAllowInvalidSurrogates() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether invalid unicode surrogate pairs should be allowed
- isAllowJavaDigitSeparators() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether Java-style digit separators (
123_456
) should be allowed - isAllowLongUnicodeEscapes() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether 32-bit unicode escape sequences (
\U00123456
) should be allowed - isAllowNaN() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether
NaN
should be allowed as a number - isAllowOctalLiterals() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether octal literals (
0o567...
) should be allowed - isAllowTrailingData() - Method in class at.syntaxerror.json5.JSONOptions
-
Specifies whether trailing data should be allowed.
Iffalse
, parsing the following will produce an error due to the trailingabc
: - isArray(int) - Method in class at.syntaxerror.json5.JSONArray
-
Checks if the value with the specified index is a JSONArray
- isArray(String) - Method in class at.syntaxerror.json5.JSONObject
-
Checks if the value with the specified key is a JSONArray
- isBoolean(int) - Method in class at.syntaxerror.json5.JSONArray
-
Checks if the value with the specified index is a boolean
- isBoolean(String) - Method in class at.syntaxerror.json5.JSONObject
-
Checks if the value with the specified key is a boolean
- isInstant(int) - Method in class at.syntaxerror.json5.JSONArray
-
Checks if the value with the specified index is an Instant
- isInstant(String) - Method in class at.syntaxerror.json5.JSONObject
-
Checks if the value with the specified key can be converted to an
Instant
. - isNull(int) - Method in class at.syntaxerror.json5.JSONArray
-
Checks if the value with the specified index is
null
- isNull(String) - Method in class at.syntaxerror.json5.JSONObject
-
Checks if the value with the specified key is
null
- isNumber(int) - Method in class at.syntaxerror.json5.JSONArray
-
Checks if the value with the specified index is a number
- isNumber(String) - Method in class at.syntaxerror.json5.JSONObject
-
Checks if the value with the specified key is a number
- isObject(int) - Method in class at.syntaxerror.json5.JSONArray
-
Checks if the value with the specified index is a JSONObject
- isObject(String) - Method in class at.syntaxerror.json5.JSONObject
-
Checks if the value with the specified key is a JSONObject
- isQuoteSingle() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether strings should be single-quoted (
'
) instead of double-quoted ("
). - isString(int) - Method in class at.syntaxerror.json5.JSONArray
-
Checks if the value with the specified index is a string
- isString(String) - Method in class at.syntaxerror.json5.JSONObject
-
Checks if the value with the specified key is a string
- isStringifyAscii() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether stringifying should only yield ASCII strings.
- isStringifyUnixInstants() - Method in class at.syntaxerror.json5.JSONOptions
-
Whether instants should be stringifyed as unix timestamps.
- iterator() - Method in class at.syntaxerror.json5.JSONArray
- iterator() - Method in class at.syntaxerror.json5.JSONObject
J
- json5 - module json5
-
MIT License Copyright (c) 2021 SyntaxError404 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- JSONArray - Class in at.syntaxerror.json5
-
A JSONArray is an array structure capable of holding multiple values, including other JSONArrays and
JSONObjects
- JSONArray() - Constructor for class at.syntaxerror.json5.JSONArray
-
Constructs a new JSONArray
- JSONArray(JSONParser) - Constructor for class at.syntaxerror.json5.JSONArray
-
Constructs a new JSONArray from a JSONParser
- JSONArray(String) - Constructor for class at.syntaxerror.json5.JSONArray
-
Constructs a new JSONArray from a string
- JSONException - Exception in at.syntaxerror.json5
-
An exception used by the JSON5 for Java Library if something went wrong
- JSONException() - Constructor for exception at.syntaxerror.json5.JSONException
-
Constructs a new JSONException
- JSONException(String) - Constructor for exception at.syntaxerror.json5.JSONException
-
Constructs a new JSONException with a detail message
- JSONException(String, Throwable) - Constructor for exception at.syntaxerror.json5.JSONException
-
Constructs a new JSONException with a detail message and a causing exception
- JSONException(Throwable) - Constructor for exception at.syntaxerror.json5.JSONException
-
Constructs a new JSONException with a causing exception
- JSONObject - Class in at.syntaxerror.json5
-
A JSONObject is a map (key-value) structure capable of holding multiple values, including other
JSONArrays
and JSONObjects - JSONObject() - Constructor for class at.syntaxerror.json5.JSONObject
-
Constructs a new JSONObject
- JSONObject(JSONParser) - Constructor for class at.syntaxerror.json5.JSONObject
-
Constructs a new JSONObject from a JSONParser
- JSONObject(String) - Constructor for class at.syntaxerror.json5.JSONObject
-
Constructs a new JSONObject from a string
- JSONOptions - Class in at.syntaxerror.json5
-
This class used is used to customize the behaviour of
parsing
andstringifying
- JSONOptions.DuplicateBehavior - Enum in at.syntaxerror.json5
-
An enum containing all supported behaviors for duplicate keys
- JSONOptions.JSONOptionsBuilder - Class in at.syntaxerror.json5
- JSONParser - Class in at.syntaxerror.json5
-
A JSONParser is used to convert a source string into tokens, which then are used to construct
JSONObjects
andJSONArrays
- JSONParser(InputStream) - Constructor for class at.syntaxerror.json5.JSONParser
-
Constructs a new JSONParser from an InputStream.
- JSONParser(InputStream, JSONOptions) - Constructor for class at.syntaxerror.json5.JSONParser
-
Constructs a new JSONParser from an InputStream.
- JSONParser(Reader) - Constructor for class at.syntaxerror.json5.JSONParser
-
Constructs a new JSONParser from a Reader.
- JSONParser(Reader, JSONOptions) - Constructor for class at.syntaxerror.json5.JSONParser
-
Constructs a new JSONParser from a Reader.
- JSONParser(String) - Constructor for class at.syntaxerror.json5.JSONParser
-
Constructs a new JSONParser from a string.
- JSONParser(String, JSONOptions) - Constructor for class at.syntaxerror.json5.JSONParser
-
Constructs a new JSONParser from a string
- JSONStringify - Class in at.syntaxerror.json5
-
A utility class for serializing
JSONObjects
andJSONArrays
into their string representations
K
- keySet() - Method in class at.syntaxerror.json5.JSONObject
-
Returns a set of keys of the JSONObject.
L
- LAST_WINS - at.syntaxerror.json5.JSONOptions.DuplicateBehavior
-
Only the last encountered value is significant, all previous occurrences are silently discarded
- length() - Method in class at.syntaxerror.json5.JSONArray
-
Returns the number of values in the JSONArray
- length() - Method in class at.syntaxerror.json5.JSONObject
-
Returns the number of entries in the JSONObject
N
- nextClean() - Method in class at.syntaxerror.json5.JSONParser
-
Reads until encountering a character that is not a whitespace according to the JSON5 Specification
- nextMemberName() - Method in class at.syntaxerror.json5.JSONParser
-
Reads a member name from the source according to the JSON5 Specification
- nextValue() - Method in class at.syntaxerror.json5.JSONParser
-
Reads a value from the source according to the JSON5 Specification
O
- options - Variable in class at.syntaxerror.json5.JSONParser
P
- parseInstant(Object) - Static method in class at.syntaxerror.json5.JSONObject
-
Tries to convert an object to an Instant.
- putAll(JSONObject) - Method in class at.syntaxerror.json5.JSONObject
-
Adds the values of the given JSONObject to this JSONObject.
- putAllDeep(JSONObject) - Method in class at.syntaxerror.json5.JSONObject
-
Adds the values of the given JSONObject to this JSONObject.
Q
- quoteSingle(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether strings should be single-quoted (
'
) instead of double-quoted ("
).
R
- remove(int) - Method in class at.syntaxerror.json5.JSONArray
-
Removes the value at an index from a JSONArray
- remove(String) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject
- removeAll(JSONArray) - Method in class at.syntaxerror.json5.JSONArray
-
Removes all entries from the JSONArray where there is the same value in the other JSONArray.
- removeArrayIf(String, Predicate<JSONArray>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeBooleanIf(String, Predicate<Boolean>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeByteExactIf(String, Predicate<Byte>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeByteIf(String, Predicate<Byte>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeDoubleExactIf(String, Predicate<Double>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeDoubleIf(String, Predicate<Double>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeFloatExactIf(String, Predicate<Float>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeFloatIf(String, Predicate<Float>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeIf(String, Predicate<Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeIf(BiPredicate<Integer, Object>) - Method in class at.syntaxerror.json5.JSONArray
-
Removes all entries from the JSONArray where the predicate returns
true
. - removeIf(BiPredicate<String, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes all entries from a JSONObject where the predicate returns
true
. - removeInstantIf(String, Predicate<Instant>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeIntExactIf(String, Predicate<Integer>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeIntIf(String, Predicate<Integer>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeKeys(JSONObject) - Method in class at.syntaxerror.json5.JSONObject
-
Removes all the keys if the same key exists within the other JSONObject too.
- removeLongExactIf(String, Predicate<Long>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeLongIf(String, Predicate<Long>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeObjectIf(String, Predicate<JSONObject>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeShortExactIf(String, Predicate<Short>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - removeShortIf(String, Predicate<Short>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
true
. - retainAll(JSONArray) - Method in class at.syntaxerror.json5.JSONArray
-
Removes all entries from the JSONArray where there is no such value in the other JSONArray.
- retainArrayIf(String, Predicate<JSONArray>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainBooleanIf(String, Predicate<Boolean>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainByteExactIf(String, Predicate<Byte>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainByteIf(String, Predicate<Byte>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainDoubleExactIf(String, Predicate<Double>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainDoubleIf(String, Predicate<Double>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainFloatExactIf(String, Predicate<Float>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainFloatIf(String, Predicate<Float>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainIf(String, Predicate<Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainIf(BiPredicate<Integer, Object>) - Method in class at.syntaxerror.json5.JSONArray
-
Removes all entries from the JSONArray where the predicate returns
false
. - retainIf(BiPredicate<String, Object>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes all entries from a JSONObject where the predicate returns
false
. - retainInstantIf(String, Predicate<Instant>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainIntExactIf(String, Predicate<Integer>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainIntIf(String, Predicate<Integer>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainKeys(JSONObject) - Method in class at.syntaxerror.json5.JSONObject
-
Retains only the keys if the same key exists within the other JSONObject too.
- retainLongExactIf(String, Predicate<Long>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainLongIf(String, Predicate<Long>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainObjectIf(String, Predicate<JSONObject>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainShortExactIf(String, Predicate<Short>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - retainShortIf(String, Predicate<Short>) - Method in class at.syntaxerror.json5.JSONObject
-
Removes a key from a JSONObject if the predicate returns
false
. - root - Variable in class at.syntaxerror.json5.JSONParser
-
whether we're currently parsing the root object/array
S
- set(int, Object) - Method in class at.syntaxerror.json5.JSONArray
-
Sets the value at a given index
- set(String, Object) - Method in class at.syntaxerror.json5.JSONObject
-
Sets the value at a given key
- setDefaultOptions(JSONOptions) - Static method in class at.syntaxerror.json5.JSONOptions
-
Sets the default options for parsing and stringifying.
- setIfAbsent(String, Object) - Method in class at.syntaxerror.json5.JSONObject
-
Sets the value at a given key if there is no value associated with the key yet
- setIfPresent(String, Object) - Method in class at.syntaxerror.json5.JSONObject
-
Sets the value at a given key if there is already a value associated with the key
- stringifyAscii(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether stringifying should only yield ASCII strings.
- stringifyUnixInstants(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
-
Whether instants should be stringifyed as unix timestamps.
- sublist(int, int) - Method in class at.syntaxerror.json5.JSONArray
-
Creates a shallow copy of part of the JSONArray.
- syntaxError(String) - Method in class at.syntaxerror.json5.JSONParser
-
Constructs a new JSONException with a detail message
- syntaxError(String, Throwable) - Method in class at.syntaxerror.json5.JSONParser
-
Constructs a new JSONException with a detail message and a causing exception
T
- toBuilder() - Method in class at.syntaxerror.json5.JSONOptions
- toList() - Method in class at.syntaxerror.json5.JSONArray
-
Converts the JSONArray into a list.
- toMap() - Method in class at.syntaxerror.json5.JSONObject
-
Converts the JSONObject into a map.
- toString() - Method in class at.syntaxerror.json5.JSONArray
-
Converts the JSONArray into its compact string representation.
- toString() - Method in class at.syntaxerror.json5.JSONObject
-
Converts the JSONObject into its compact string representation.
- toString() - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
- toString() - Method in class at.syntaxerror.json5.JSONParser
- toString(int) - Method in class at.syntaxerror.json5.JSONArray
-
Converts the JSONArray into its string representation.
- toString(int) - Method in class at.syntaxerror.json5.JSONObject
-
Converts the JSONObject into its string representation.
- toString(JSONArray, int) - Static method in class at.syntaxerror.json5.JSONStringify
-
Converts a JSONArray into its string representation.
- toString(JSONArray, int, JSONOptions) - Static method in class at.syntaxerror.json5.JSONStringify
-
Converts a JSONArray into its string representation.
- toString(JSONObject, int) - Static method in class at.syntaxerror.json5.JSONStringify
-
Converts a JSONObject into its string representation.
- toString(JSONObject, int, JSONOptions) - Static method in class at.syntaxerror.json5.JSONStringify
-
Converts a JSONObject into its string representation.
U
- UNIQUE - at.syntaxerror.json5.JSONOptions.DuplicateBehavior
-
Throws an
exception
when a key is encountered multiple times within the same object
V
- valueOf(String) - Static method in enum at.syntaxerror.json5.JSONOptions.DuplicateBehavior
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum at.syntaxerror.json5.JSONOptions.DuplicateBehavior
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages