probably not the best way to add support for #to_json