Move JSON parsing from controller to Devise strategy