json.WriteError: result field must be null
Merge pull request #18 from rjeczalik/result-fix

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