this was using `canonical_json` without setting it, so when you used it as a standalone class, you would get exceptions.