Class std.json.JSON
Synopsis
public abstract class JSON
Represents any JSON value, and also provides static methods to parse JSON.
Fields
Constructors
Methods
Encode this value and write to the specified output stream.
Arguments
strm | The output stream. |
---|---|
depth | Current depth (for indentation). |
Encode this value and write to the specified output stream.
Escape a string for writing to a JSON file. This does NOT add quotes to each end!
Parse JSON from the specified stream, and return the resulting JSON object. This might be null
if the stream
simply says null
.
Arguments
strm | The input stream to read from. |
---|
Returns
A JSON instance referring to the parsed data.
Throws
std.json.JSONError | If the input data is invalid. |
---|