push to_json method down the the cateogry model