Use `Branch#to_hash` in `#branches_json`