I'd use `.to_json()` in both these places