I am currently facing a major roadblock with formatting and processing a JSON response. Here is the sequence of steps I am following:
- Request data from a REST API endpoint (https://endpoint.com/api/v1/employee?id={username})
- Receive the JSON response:
{"employee":{"full name":"Example Name","function":"Role","office":"Office Location",team":"Team 1|Team 2|Team 3|"}}
Within my base.js file in my django application, I need to extract the team information and pass it on to another URL. How can I achieve this? Even though I receive responseJSON, responseText, etc. when using $.getJSON
on the endpoint, I am struggling to work with or retrieve the desired data.