Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.3
-
None
Description
application/json-rpc is a valid return type, but the plugin isn't implementing JSON-RPC 2.0 correctly:
http://groups.google.com/group/json-rpc/web/json-rpc-2-0
http://groups.google.com/group/json-rpc/web/json-rpc-over-http
Specifically, the json plugin doesn't return a jsonrpc element with value "2.0" and doesn't use the standard error codes.
Adding the jsonrpc element is easy, but changing the errors codes will break backward compatibility.
So it's cleaner to switch the return type to application/json