Fix deprecated render_json