We should probably pass `options` to `to_json` here.