You're doing the JSON.parse two times here, and then again later on extract_user, which looks like a redundant JSON parsing, probably should be enough with parsing the JSON one time, maybe on extract_user