A BEGINNER’S GUIDE

How to easily locate your JSON objects in your API response?

Tricks and tools for locating the JSON objects in the REST API response

Pricilla Bilavendran
4 min readJul 1, 2021

--

Dear People,

I hope you are safe and doing good.

When I started with API Testing, JSON format was quite new to me. But somehow I liked it due to it’s readability. Due to the love for that, currently I have updated my bio in many places in JSON format. Okay, let me explain why I am writing this post.

  1. Personally I, myself faced lot of challenges in parsing the bigger JSON response of an API
  2. In Postman community forum, I see many people asking about the error “undefined”. This pops-up when the JSON path is invalid (can be in your Test cases or trying to assign a value from the response to a variable or when you are trying to print the JSON object). In all these cases, if the path mentioned to reach the JSON element is wrong then it returns “undefined”.

How to fix this?

This is a very common error, when we are dealing with API requests and responses. For JSON responses, we have a simple tool where we can just paste our response and the tool helps us to reach the desired element, particularly where there’s nested arrays involved. This tool is developed by Joe Beach. This is the GitHub URL.

--

--

Pricilla Bilavendran
Pricilla Bilavendran

No responses yet