Trouble mapping JSON from endpoint

Hello!

I am unable to map data coming in to my endpoint. I am sending the simplest of JSONs to test:

{   
    "regnummer": "EL12345"
}

the endpoint is setup like the screenshot, and the test function is logging the regnummer variable to the Console log with the result being undefined. I don’t understand why it’s not working.

1 Like

I am going to leave this shameful post up incase someone runs into the same problem. If you are using postman be sure to select JSON as the body data. This will populate the header with Content-Type: application/json.

2 Likes