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 received | What to do first |
|---|---|
A .json file inside a ZIP | Extract it and check its actual name and location |
A .json file with a long, single line of text | Format a copy to inspect its structure |
| JSON with the same name as a nearby photo or video | Distinguish metadata from the actual media file |
A .jsonc or .jsonl file | Check how its syntax or record boundaries differ from ordinary JSON |
| HTML that looks like an error page | Check 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.
- Select your reading copy through File → Open File. You do not need to create a project folder just to read one file.
- Check the language mode in the lower-right corner. For an ordinary
.jsonfile, use JSON. - Select Format Document from the editor context menu. The default Windows shortcut is
Shift+Alt+F. - Use the folding icons beside objects and arrays to expand only the sections you need.
- Use
Ctrl+Fto find a known key or value, then check the object or array containing that item. - 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": "두 번째 예제"
}
]
}
| Notation | How to read it | What to check in the example |
|---|---|---|
{ } | An object containing named values | The top-level exportedAt and items |
[ ] | An array containing an ordered sequence of values | The two items inside items |
"key": value | A value associated with a key | "name": "가상항목B" |
"00123" | A string inside quotation marks | The leading zeroes are part of the code |
true · false | Boolean values | The different available values in the two items |
null | A null value | The first item’s note differs from an empty string |
For example, to find the name of the second item, read it in this order:
- Find
itemsin the top-level object. - Check that the square brackets contain two objects.
- Confirm that the second object’s
codeis00456. - Read
namein that same object: its value is가상항목B. - Read
available: unlike the first item’s value, it isfalse.
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 see | Possible distinction | What to check |
|---|---|---|
| A long, single line | Whitespace may have been removed when saving | JSON mode and document formatting |
| Errors around quotation marks, commas or brackets | A syntax error or a truncated file | The message, surrounding structure and original file |
| Comments or a trailing comma are flagged | A different mode, such as JSONC, may be intended | The format required by the app that created the file |
| A separate JSON value on each line | It may be JSON Lines | Check for .jsonl; do not assume it can be formatted as one ordinary JSON document |
| Readable syntax, but warnings about keys or values | Requirements from an associated JSON schema | The underline’s message and the required conditions |
| A schema download warning | An external schema may be unreachable | Distinguish network or organization restrictions from errors in the file itself |
| Slow response with a large file | File size or editor processing limits | The 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.
