public class JSON extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>| Modifier | Constructor and Description |
|---|---|
protected |
JSON(Objs.Constructor<?> c,
Object js) |
| Modifier and Type | Method and Description |
|---|---|
static JSON |
$as(Object obj) |
static Object |
parse(String text)
Converts a JavaScript Object Notation (JSON) string into an object.
|
static Object |
parse(String text,
Function.A2<? super Object,? super Object,? extends Object> reviver)
Converts a JavaScript Object Notation (JSON) string into an object.
|
static String |
stringify(Object value)
Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
static String |
stringify(Object value,
Function.A2<? super String,? super Object,? extends Object> replacer)
Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
static String |
stringify(Object value,
Function.A2<? super String,? super Object,? extends Object> replacer,
double space)
Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
static String |
stringify(Object value,
Function.A2<? super String,? super Object,? extends Object> replacer,
String space)
Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
static String |
stringify(Object value,
Object[] replacer)
Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
static String |
stringify(Object value,
Object[] replacer,
double space)
Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
static String |
stringify(Object value,
Object[] replacer,
String space)
Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOfprotected JSON(Objs.Constructor<?> c, Object js)
public static Object parse(String text, Function.A2<? super Object,? super Object,? extends Object> reviver)
text - A valid JSON string.reviver - A function that transforms the results. This function is called for each member of the object.
If a member contains nested objects, the nested objects are transformed before the parent object is.public static Object parse(String text)
text - A valid JSON string.reviver - A function that transforms the results. This function is called for each member of the object.
If a member contains nested objects, the nested objects are transformed before the parent object is.public static String stringify(Object value)
value - A JavaScript value, usually an object or array, to be converted.public static String stringify(Object value, Object[] replacer)
value - A JavaScript value, usually an object or array, to be converted.replacer - Array that transforms the results.public static String stringify(Object value, Object[] replacer, String space)
value - A JavaScript value, usually an object or array, to be converted.replacer - Array that transforms the results.space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.public static String stringify(Object value, Object[] replacer, double space)
value - A JavaScript value, usually an object or array, to be converted.replacer - Array that transforms the results.space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.public static String stringify(Object value, Function.A2<? super String,? super Object,? extends Object> replacer)
value - A JavaScript value, usually an object or array, to be converted.replacer - A function that transforms the results.public static String stringify(Object value, Function.A2<? super String,? super Object,? extends Object> replacer, String space)
value - A JavaScript value, usually an object or array, to be converted.replacer - A function that transforms the results.space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.public static String stringify(Object value, Function.A2<? super String,? super Object,? extends Object> replacer, double space)
value - A JavaScript value, usually an object or array, to be converted.replacer - A function that transforms the results.space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.Copyright © 2018. All rights reserved.