@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="JSON")
public class JSON
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
JSON() |
| Modifier and Type | Method and Description |
|---|---|
static @JsNullable jsinterop.base.Any |
parse(java.lang.String text)
The JSON.parse() method parses a JSON string, constructing the JavaScript value or object described by the string.
|
static @JsNullable jsinterop.base.Any |
parse(java.lang.String text,
ParseReviverFn reviver)
The JSON.parse() method parses a JSON string, constructing the JavaScript value or object described by the string.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
JsArray<StringOrLongLongUnion> replacer)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
JsArray<StringOrLongLongUnion> replacer,
int space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
JsArray<StringOrLongLongUnion> replacer,
java.lang.String space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
JsArray<StringOrLongLongUnion> replacer,
StringifySpaceUnionType space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
StringifyReplacerFn replacer)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
StringifyReplacerFn replacer,
int space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
StringifyReplacerFn replacer,
java.lang.String space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
StringifyReplacerFn replacer,
StringifySpaceUnionType space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
StringOrLongLongUnion[] replacer)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
StringOrLongLongUnion[] replacer,
int space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
StringOrLongLongUnion[] replacer,
java.lang.String space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
static @JsNonNull java.lang.String |
stringify(java.lang.Object value,
StringOrLongLongUnion[] replacer,
StringifySpaceUnionType space)
The JSON.stringify() method converts a JavaScript object or value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
StringifyReplacerFn replacer,
@Nullable
StringifySpaceUnionType space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
JsArray<StringOrLongLongUnion> replacer,
@Nullable
StringifySpaceUnionType space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
StringifyReplacerFn replacer,
@Nonnull
java.lang.String space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
JsArray<StringOrLongLongUnion> replacer,
@Nonnull
java.lang.String space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
StringifyReplacerFn replacer,
int space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
JsArray<StringOrLongLongUnion> replacer,
int space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
StringOrLongLongUnion[] replacer,
@Nullable
StringifySpaceUnionType space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
StringOrLongLongUnion[] replacer,
@Nonnull
java.lang.String space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
StringOrLongLongUnion[] replacer,
int space)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
StringifyReplacerFn replacer)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
JsArray<StringOrLongLongUnion> replacer)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value,
@Nonnull
StringOrLongLongUnion[] replacer)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNonNull java.lang.String stringify(@Nullable
java.lang.Object value)
TypeError if a circular reference is found or an attempt is made to stringify a BigInt.public static @JsNullable jsinterop.base.Any parse(@Nonnull
java.lang.String text,
@Nullable
ParseReviverFn reviver)
SyntaxError if the string to parse is not valid JSON.public static @JsNullable jsinterop.base.Any parse(@Nonnull
java.lang.String text)
SyntaxError if the string to parse is not valid JSON.