Request.fromJSONString

Parse a JSON string into a Request object.

struct Request
package static
fromJSONString
(
const char[] str
)

Parameters

str char[]

The JSON string to parse.

Notes: The ID, if present, must be integral; this is non-conformant to the JSON-RPC specification.

Throws

InvalidDataReceived if the ID or method fields are missing.

JSONException if the ID or method fields are an incorrect type. The ID must be integral and the method must be a string.

Meta