Now with a useful toJSON method