Not sure what I am doing wrong. I have checked the syntax and “:” (semicolons) are seemed to be correctly placed.
Can someone please help me understand what could be the mistake in here?
From the screenshot, it appears you have pasted your JSON into the test tab. Try putting it in the “Body” tab instead and then selecting JSON from the list;