I think `#to_json` is not needed here.