Flo's Pull Request

@florrain @12and1studio @mrocco64 - I'm creating this pull request so we can collaborate/review the code.
If we have to completely override it, then it's best to do what you're doing. I wasn't aware that the default `.to_json` was not compliant to its Api representation.