ResultStatus WIP.
Implement toJSON method for all the types.