Skip to content
MyToolers

Reading API Responses: JSON for Non-Programmers

Learn to read the JSON an app or API sends back: find the data, follow nested fields, check totals and pages, and spot the traps in amounts, nulls and times.

By the MyToolers team at 182 AdFlow (Dubai & Lahore) · Last updated:

Why you may need to read JSON

You do not have to be a programmer to meet JSON. A courier company sends a tracking result, a payment gateway shows a transaction log, a developer asks you to “check what the API returns”, or a website plugin shows an error with a block of curly brackets. All of these are JSON: structured text that one system sends to another.

Reading it yourself saves time. You can confirm whether an order really failed, whether a number is wrong at the source or only on your screen, and describe a problem to your developer precisely. This guide is about reading a real response; for syntax rules and common errors, see our JSON basics guide.

Step 1: Format it so you can see the structure

API responses usually arrive as one long line with no spaces. Before reading anything, paste it into a JSON formatter and press Format. Each value moves onto its own line and every level of nesting is indented, so you can see which fields belong together.

If the formatter reports an error instead, the response may have been cut off when you copied it, or it may not be JSON at all — some servers return an HTML error page when they fail. That itself is useful information to pass on.

Step 2: Find the envelope and the data

Most responses wrap the useful data in an outer layer, often called the envelope. Typical top-level fields are a status or success flag, a message or error, some paging details, and a field such as data, results or items that holds the actual records. Here is a shortened example from an imaginary online shop's orders API:

{"status": "success", "page": 1, "per_page": 3, "total_count": 7, "data": [{"order_id": "A-1041", "customer": {"name": "Sara", "phone": "0501234567"}, "amount": "125.50", "currency": "AED", "order_status": "delivered", "delivered_at": "2026-11-18T14:05:00Z"}, {"order_id": "A-1042", "customer": {"name": "Hamza", "phone": "0529876543"}, "amount": "89.00", "currency": "AED", "order_status": "returned", "delivered_at": null}, {"order_id": "A-1043", "customer": {"name": "Noor", "phone": "0554567890"}, "amount": "210.25", "currency": "AED", "order_status": "delivered", "delivered_at": "2026-11-18T09:40:00Z"}]}

Read it from the outside in. The request worked (status is success). The square brackets after data mean it is a list — here, a list of three orders. Each order is an object in curly braces, and customer is an object inside the order. Check the status field first every time: if it says error or success is false, the data part may be empty or missing, and the message field usually explains why.

Step 3: Follow the path to the field you need

Developers describe where a value sits with a path. In the example, data[0].customer.phone means: open data, take the first item (counting starts at 0, not 1), open customer, read phone. That gives "0501234567". The third order's amount is data[2].amount, which is "210.25".

When you report a problem, quote the path and the value — for example, “data[1].delivered_at is null even though the rider marked it delivered”. Your developer can find that exact spot in seconds.

Step 4: Check the numbers — a worked example

Say your dashboard shows AED 424.75 of delivered sales for these orders and you want to check it. Only two orders have order_status delivered: 125.50 + 210.25 = AED 335.75. Adding the returned order as well gives 335.75 + 89.00 = AED 424.75. So the dashboard is counting returned orders as sales — the data from the API is fine, and the problem is in how it is totalled.

Now look at the paging fields. total_count is 7 but per_page is 3, so this response holds only the first page. The full list needs 7 ÷ 3 = 2.33, rounded up to 3 pages: page 1 and page 2 hold 3 orders each, and page 3 holds 7 − 6 = 1 order. If a report only ever reads page 1, it will quietly miss four of the seven orders. A total_count larger than the number of records you can see is the clue.

Step 5: Watch for traps in amounts, empty values and times

Amounts as text: here amount is in quotes, so it is a string, not a number. That is common with money, but if a report treats it as text, totals can come out as zero or as joined-up text.

Smallest units: some payment systems send money in the smallest unit of the currency, so an amount of 12550 for AED would mean 12550 ÷ 100 = AED 125.50 in fils. Never assume — the API's documentation says which style it uses.

null, empty and missing: null means the field exists but has no value (Hamza's order was never delivered, so delivered_at is null). An empty string "" or an empty list [] is a value that happens to be empty. A field that is missing completely may mean an older version of the API or an error. These three cases often need different handling, so mention which one you see.

Times in UTC: the Z at the end of 2026-11-18T14:05:00Z means UTC. The UAE is UTC+4 and Pakistan is UTC+5, and neither uses daylight saving time, so Sara's order was delivered at 18:05 in Dubai, which is 19:05 in Karachi. Some APIs send a Unix timestamp instead — a plain number of seconds (usually 10 digits) or milliseconds (13 digits) since 1 January 1970 UTC — which a timestamp converter turns into a readable date.

Leading zeros: the phone numbers are in quotes on purpose. As numbers, 0501234567 would lose its first zero.

Common mistakes when reading responses

Reading the data before checking the status or error field.

Counting from 1 instead of 0 when quoting a path, so the developer looks at the wrong record.

Treating page 1 as the complete list when total_count says there is more.

Assuming an amount is in dirhams or rupees when it is in fils or paisa, or summing amounts that are stored as text.

Reading a UTC time as local time — a four- or five-hour error that can make an order look late or delivered on the wrong date.

Pasting a response that contains customer phone numbers, addresses or access keys into public forums or chat groups. Remove private details or tokens before sharing it outside your team.

Tools that make this easier

The MyToolers JSON Formatter & Validator beautifies a response with 2- or 4-space indentation, shows the exact line and column of any error with a plain-English reason, can sort keys A–Z to compare two responses, and shows stats such as how many objects and arrays the JSON contains. It runs in your browser, so the data is not sent to a server.

To total or filter records in a spreadsheet, the CSV to JSON Converter turns a JSON list back into CSV for Excel or Google Sheets, collecting every key from every object as a column. For timestamps, the Unix Timestamp Converter shows a timestamp as a readable date in your local time, UTC and ISO 8601, and detects seconds or milliseconds automatically.

Related on MyToolers