Open JSON files — Read structure and check errors

Last content update 11/2/2026
QUICK ANSWER
JSON is a text format for data. Copy the original and inspect it in Notepad, or open it in VS Code, check that the language mode is JSON and use Format Document. Follow object keys and array items to find the values you need. If an error appears, distinguish syntax, schema requirements and the actual file format. JSON beside a photo or video may contain metadata, so do not rename it to JPG or MP4.

JSON is a data format rather than an executable

JSON is a text format that represents keys and values, objects and arrays. You may encounter it when exporting data from a service, in app settings or as a metadata file beside a photo. Opening a file to read its contents and restoring data to the service are separate tasks.

This article explains how to read a local copy of an ordinary JSON file on a PC. Inspect the raw text in Notepad, or use VS Code for a more complex structure. For installation, see the existing VS Code guide.

What you receivedWhat to do first
A .json file inside a ZIPExtract it and check its actual name and location
A .json file with a long, single line of textFormat a copy to inspect its structure
JSON with the same name as a nearby photo or videoDistinguish metadata from the actual media file
A .jsonc or .jsonl fileCheck how its syntax or record boundaries differ from ordinary JSON
HTML that looks like an error pageCheck where the download came from and whether it completed

Keep the original and prepare a copy such as 자료-읽기용.json (a copy for reading). You do not need to submit the file to an online converter or execute code to inspect its contents.

Open the file in Notepad or VS Code

For a short file, use File → Open in Notepad to view the raw text. If the file is missing from the dialog, check the file type filter. A long line alone does not mean the file is damaged.

To read the structure by folding and expanding it, follow these steps in VS Code. Menu names use the official English interface.

  1. Select your reading copy through File → Open File. You do not need to create a project folder just to read one file.
  2. Check the language mode in the lower-right corner. For an ordinary .json file, use JSON.
  3. Select Format Document from the editor context menu. The default Windows shortcut is Shift+Alt+F.
  4. Use the folding icons beside objects and arrays to expand only the sections you need.
  5. Use Ctrl+F to find a known key or value, then check the object or array containing that item.
  6. Save under a separate name only if you want to keep the formatted copy. You can also close the file without saving after reading it to preserve the original.

VS Code includes JSON editing support. You do not need to add a code execution button or a separate viewer extension for this task. If you have changed your shortcuts, use Format Document from the menu.

Find the value you need inside objects and arrays

The following is an example created to explain the structure. It is not a real export or the file format of a particular service. The Korean sample names mean “fictional item A” and “fictional item B”; the final note means “second example.”

{
  "exportedAt": "2026-10-19",
  "items": [
    {
      "code": "00123",
      "name": "가상항목A",
      "available": true,
      "note": null
    },
    {
      "code": "00456",
      "name": "가상항목B",
      "available": false,
      "note": "두 번째 예제"
    }
  ]
}
NotationHow to read itWhat to check in the example
{ }An object containing named valuesThe top-level exportedAt and items
[ ]An array containing an ordered sequence of valuesThe two items inside items
"key": valueA value associated with a key"name": "가상항목B"
"00123"A string inside quotation marksThe leading zeroes are part of the code
true · falseBoolean valuesThe different available values in the two items
nullA null valueThe first item’s note differs from an empty string

For example, to find the name of the second item, read it in this order:

  1. Find items in the top-level object.
  2. Check that the square brackets contain two objects.
  3. Confirm that the second object’s code is 00456.
  4. Read name in that same object: its value is 가상항목B.
  5. Read available: unlike the first item’s value, it is false.

A location may be written as items[1].name. In this example, the first array position is 0 and the second is 1. This notation describes where the value is. It is not a new key to add to the file or a command to run.

If the same name key appears several times, check which item contains the value rather than reading just one line of search results. Compare the meaning of real keys, dates and units with the documentation from the service that created the data. Valid JSON syntax does not guarantee that the contents are accurate.

When formatting fails or warnings appear

What you seePossible distinctionWhat to check
A long, single lineWhitespace may have been removed when savingJSON mode and document formatting
Errors around quotation marks, commas or bracketsA syntax error or a truncated fileThe message, surrounding structure and original file
Comments or a trailing comma are flaggedA different mode, such as JSONC, may be intendedThe format required by the app that created the file
A separate JSON value on each lineIt may be JSON LinesCheck for .jsonl; do not assume it can be formatted as one ordinary JSON document
Readable syntax, but warnings about keys or valuesRequirements from an associated JSON schemaThe underline’s message and the required conditions
A schema download warningAn external schema may be unreachableDistinguish network or organization restrictions from errors in the file itself
Slow response with a large fileFile size or editor processing limitsThe original size, a small sample and large-file reading conditions

Standard JSON uses double quotation marks for object keys and strings. JSONC is a separate language mode that allows comments, so changing modes merely to hide errors in an ordinary JSON file does not resolve them.

Do not delete keys, commas or values from the original at random to clear warnings. If you can obtain the original again, compare the same location first. To check a large file or Korean text encoding in another editor, see Notepad++ encoding and large-file guidance.

If you want photos, videos or a table

JSON received with photos or videos may contain metadata such as dates, descriptions or file references. Renaming .json to .jpg or .mp4 does not create that media. Look for the actual photo or video files in the original archive or export. For checking a photo copy, continue to the Google Photos download guide (Korean).

If you need a table, first choose how nested objects and arrays should map to rows and columns. Do not assume all JSON has the same structure or simply rename it to CSV or XLSX. You have completed this article’s task when the original is preserved and you can explain the location and value of the item you need.

Sources

Frequently asked questions

Do I need to install a dedicated JSON viewer?
JSON is plain text, so Windows Notepad can display its raw contents. To format or fold the structure, use VS Code's built-in JSON support. You do not need to install a separate JSON extension first.
Is a JSON file damaged if everything is on one line?
It may be valid JSON saved with less whitespace. Try formatting a copy. If formatting fails, check the indicated error location and the actual file format. Do not overwrite the original straight away.
Can I convert JSON to MP4 or JPG?
Ordinary JSON stores data rather than the video or photo itself. If it records a description or the location of a media file, find the original media. Changing the extension alone does not create it.
Does a red underline mean the file cannot be read?
It may indicate a syntax problem such as a quotation mark or comma, or a warning that a key or value does not meet an associated schema's requirements. Check the message and language mode. If you only want to read the file, do not arbitrarily change values to remove warnings.
Should I convert the JSON file straight to Excel?
First decide how nested objects and arrays should map to rows and columns. Renaming the file to XLSX or CSV is not a conversion. This article covers reading the original structure, rather than a single conversion procedure for every JSON file.