Closed malpiatko closed 7 years ago
If we're going to Marshal it we should probably have a function to Unmarshal as well.
Hey, I have changed the code significantly by adding json tags to field, this is almost equivalent to the MarshalJSON function except now we will have marshalled error like this:
{ errors: <array of errors> }
Instead of: `{
Added a simple MarshalJSON to enable marshalling of the error.