method as_json