메소드 | 설명 | |
---|---|---|
JSONSerializer ( ScriptEngine engine ) : System |
Creates a new JSONSerializer instance with the default options.
|
|
Serialize ( object value ) : string |
Serializes a value into a JSON string.
|
메소드 | 설명 | |
---|---|---|
QuoteString ( string input, System result ) : void |
Adds double quote characters to the start and end of the given string and converts any invalid characters into escape sequences.
|
|
SerializeArray ( |
Serializes an array into a JSON string.
|
|
SerializeObject ( |
Serializes an object into a JSON string.
|
|
SerializePropertyValue ( object value, StringBuilder result ) : void |
Serializes a value into a JSON string. Does not serialize "undefined", check for that value before calling this method.
|
|
TransformPropertyValue ( |
Transforms the value stored in the given object using toJSON and/or the replacer function.
|
|
TransformPropertyValue ( |
Transforms the value stored in the given object using toJSON and/or the replacer function.
|
public JSONSerializer ( ScriptEngine engine ) : System | ||
engine | ScriptEngine | The associated script engine. |
리턴 | System |
public Serialize ( object value ) : string | ||
value | object | The value to serialize. |
리턴 | string |