The to_json methods on blocks and transactions are somewhat out of place. Originally they were used to support a blockchain explorer, but this use-case no longer exists. The place to phase these out would take the following steps:
- Add a deprecation warning to let users know these methods are going away and do a release.
- Completely remove the methods and all associated tests in a follow-on major release.