Index

A B C E G H I J K L N P Q R S T 
All Classes and Interfaces|All Packages|Serialized Form

A

add(Object) - Method in class at.syntaxerror.json5.JSONArray
Adds a value to the JSONArray
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
allowNaN(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
Whether NaN should be allowed as a number
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

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

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.

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
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
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
isAllowNaN() - Method in class at.syntaxerror.json5.JSONOptions
Whether NaN should be allowed as a number
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 is 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
isParseInstants() - Method in class at.syntaxerror.json5.JSONOptions
Whether instants should be parsed as such.
isParseStringInstants() - Method in class at.syntaxerror.json5.JSONOptions
Whether string instants (according to RFC 3339, Section 5.6) should be parsed as such.
isParseUnixInstants() - Method in class at.syntaxerror.json5.JSONOptions
Whether unix instants (integers) should be parsed as such.
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
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 Class in at.syntaxerror.json5
An exception used by the JSON5 for Java Library if something went wrong
JSONException() - Constructor for exception class at.syntaxerror.json5.JSONException
Constructs a new JSONException
JSONException(String) - Constructor for exception class at.syntaxerror.json5.JSONException
Constructs a new JSONException with a detail message
JSONException(String, Throwable) - Constructor for exception class at.syntaxerror.json5.JSONException
Constructs a new JSONException with a detail message and a causing exception
JSONException(Throwable) - Constructor for exception class 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 and stringifying
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 and JSONArrays
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 and JSONArrays into their string representations

K

keySet() - Method in class at.syntaxerror.json5.JSONObject
Returns a set of keys of the JSONObject

L

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

P

parseInstants(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
Whether instants should be parsed as such.
parseStringInstants(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
Whether string instants (according to RFC 3339, Section 5.6) should be parsed as such.
parseUnixInstants(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
Whether unix instants (integers) should be parsed as such.

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

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.
stringifyUnixInstants(boolean) - Method in class at.syntaxerror.json5.JSONOptions.JSONOptionsBuilder
Whether instants should be stringifyed as unix timestamps.
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.
A B C E G H I J K L N P Q R S T 
All Classes and Interfaces|All Packages|Serialized Form