json.WriteError: when an error field is non-null, a result one must be null

According to JSON-RPC spec only one of error and result fields can be non-null. Besides json.DecodeClientResponse would fail on attempt of unmarshaling {"error_message":"..."} to user-defined reply value - current implementation have hidden that problem.