Fixing JSON encoder typo and adding to roundtrip for tests.