new WJSONWriter()
- Description:
Implements a weak JSON writer.
Methods
(static) write(value, prettyopt, strictopt, fastopt)
- Description:
Returns a JSON structure as a weak JSON string.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
value |
JSON | The input JSON value to stringify. |
||
pretty |
bool |
<optional> |
false
|
If true properly format in 2D, else returns a minimal raw format. |
strict |
bool |
<optional> |
false
|
If true strict JSON syntax, else produces a weak JSON syntax. |
fast |
bool |
<optional> |
false
|
If fast serializes the data as fast as possible (quoting all words without any lexical analysis). |