Changing the way we bind to/from JSON, to make the code less verbose