Got the method names wrong last commit.  Its as_json, not json.

For #230.