My current task involves parsing the body of a response I receive after making an API call using Ajax in AngularJS. The response looks like this:
--3531b7e68196e3144197f82db0864b7e391c8b0ad51c4176c28f8ac41b3c Content-Disposition: form-data; name="passport"; filename="passport.json" Content-Type: application/json { "name": "Nothing", "dob_display": "10/11/1997", "dob_accuracy": "FD", "owner_firstname": "Nothing", "owner_surname": "To Understand" } --3531b7e68196e3144197f82db0864b7e391c8b0ad51c4176c28f8ac41b3c--
Unfortunately, I haven't been able to find a plugin that can extract the body from this type of request. Should I create a manual parser or is there another solution available? I would greatly appreciate any assistance.