Add render_json helper