Added json_response helper function