How to Open a JSON File and Check Its Contents
Open a JSON file locally, confirm its structure, and diagnose invalid syntax, empty results and unexpected HTML without changing the original.

Choose an opener for the job
Open a .json file in a plain-text editor when you need to see what was delivered. Use an editor with JSON support if you also need to navigate long objects or locate a syntax error. A spreadsheet is a separate choice: it works only after you have identified what should become each row. Keep the original unchanged and make a separate copy for any edits or conversion.
Identify the file you actually received
Look at the first meaningful content, not only the file extension. An opening brace often means an object and an opening bracket often means an array. A file beginning with <!doctype html> may be a login page or error response saved under the wrong name. An empty file is not the same as []. One object on each line without an enclosing array may be a JSON Lines export. Confirm the export format with the sender before adding brackets or changing punctuation.
| What you see | Next check |
|---|---|
| An object with a field such as items | Find the records inside that field |
| An array, possibly empty | Check record count and what an empty result means |
| An HTML document instead of the expected JSON | Verify the download link or response content type |
| One record per line | Confirm whether the receiving application accepts JSON Lines |
Check a small export without losing its IDs
Suppose the file contains {"items":[{"id":"0042","qty":2},{"id":"0061","qty":3}]}. Open it as text and find items. You should see two records; the quantities add to five. Both IDs are quoted strings, so their leading zeros belong to the values. If another viewer displays 42, return to the original and check whether the conversion step changed the ID. Do not overwrite the source to make it match the viewer.
Fix one confirmed syntax error at a time
If a local JSON-aware editor points to an unexpected closing brace, examine the preceding line. For example, {"id":"0042",} has a trailing comma that is not allowed in JSON. Remove it in a working copy only when that comma is the actual fault. Do not globally replace single quotes: an apostrophe inside a correctly quoted string can be valid text. When a download appears cut off, get a complete export instead of guessing its missing end.
Check the business meaning after the file opens
A file can parse and still be unusable. Compare the required fields, their types, and record counts against the source contract. A numeric quantity and a string containing the same digits may lead to different behavior in the receiving application. Keep one ordinary record, one empty result and one questionable record with the review notes. Remove confidential values before sharing a snippet with anyone outside the workflow.
Questions about opening JSON
Do I need an online viewer? No. A local text editor is sufficient to inspect the original. Prefer local review for confidential exports.
What should I do if the editor can read the file but my application rejects it? Compare the required fields and types; a local syntax check does not prove that the receiving application accepts the structure.
Choose the next step by output
If the receiver needs the original JSON, return the verified file with the count and schema differences. If the receiver needs a table, identify the record list and decide how to preserve IDs and nested values before conversion. Use conversion as a separate step, not a way to hide an unreadable input.
If the file is meant to contain a collection, check the array shape for zero, one and multiple records.

