Fixes #50 - Bump default json to 2.7, which requires a custom encoder to serialize the generator