Update before_filter to return json.