mrspark/erlang-rfc4627 — comment on commit 9fb45432f9bc274690694f0a6933e354b3545955
File:  line 0
By tonyg:

Hmm, interesting. Reading the 1.1 JSON-RPC spec, it's hard to know what to do. So first off, I think you're right to fix it in rfc4627_jsonrpc_http:parse_jsonrpc/5, but the question then becomes: what should be done? My guess is that absent parameters should be treated like `[]`, exactly as you suggested in this commit. The spec says that `params` is optional, but then says that if it has a value other than an array or object, the server must reject the request with an error, which seems a bit contradictory.