@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="JSON")
public class JSON
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
JSON() |
| Modifier and Type | Method and Description |
|---|---|
static 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.
|
@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nonnull
public static 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.@Nullable
public static jsinterop.base.Any parse(@Nonnull
java.lang.String text,
@Nullable
ParseReviverFn reviver)
SyntaxError if the string to parse is not valid JSON.@Nullable
public static jsinterop.base.Any parse(@Nonnull
java.lang.String text)
SyntaxError if the string to parse is not valid JSON.