This PR allows omitting the data value of an error object as specified in JSON-RPC 2.0
data
A Primitive or Structured value that contains additional information about the error.
This may be omitted.
The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
Description
This PR allows omitting the
data
value of anerror
object as specified in JSON-RPC 2.0How do you reproduce it?
What did you expect to happen?
That the
error
object (array) is parsed correctly althoughdata
is omitted.What actually happened?
setOptions()
fails with an error.