Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsJSON (JavaScript Object Notation) is a text format for representing structured data so software can store it or exchange it with other systems. It is not a programming language, even though its syntax was derived from conventions used in JavaScript. A JSON document can contain strings, numbers, booleans, null, objects, or arrays.
{
"name": "Mina",
"active": true,
"score": 12,
"tags": ["blue", "green"],
"manager": null
}
Here, curly braces enclose an object of named values, and square brackets enclose an ordered array. The example is valid JSON; what its fields mean depends on the application using it.
What JSON is used for
JSON is short for JavaScript Object Notation. The IETF’s RFC 8259 describes it as a text format for serializing structured data. A program can turn data into JSON text, send or save that text, and have another program parse it back into data. JSON is widely useful precisely because it is a format rather than a feature limited to one programming language: systems written in different languages can exchange the same text when they follow the same format and agree on what its fields mean.
JSON defines how data is written, not the complete meaning of a particular data model. For example, the format permits a field named score to hold a number, but it does not say whether that number is a test result, a rating, or something else. ECMA-404, Ecma International’s JSON standard, explicitly limits its goal to defining valid JSON syntax. The applications exchanging data must establish their own rules for required fields, allowed values, and interpretation.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstall#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
How JSON is structured
Objects: named values
An object is a collection of name/value pairs enclosed in curly braces, {}. Each member has a string name, followed by a colon and a value. Commas separate members. In the example, "active" is a name and true is its value.
Object member order is not semantically guaranteed by the JSON standard. Applications should identify members by their names rather than rely on their position in the text. A parser may preserve an order as an implementation detail, but that does not make order part of an object’s meaning under the standard.
Arrays: ordered values
An array is a sequence of values enclosed in square brackets, [], with commas between elements. Unlike object members, array elements are ordered: the first element is at index 0 in many programming languages, although the indexing convention belongs to the language using the parsed array. Array elements need not all have the same type.
["blue", 12, false, null]
This array is valid JSON. Whether a particular application expects a mixed-type array is a separate question of application rules.
Recommended Free Tools
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
The six JSON value types
- String: Text enclosed in double quotation marks, such as
"hello". - Number: A numeric value such as
12or-0.5, written using JSON’s number grammar. - Boolean: Either lowercase literal
trueorfalse. - Null: The lowercase literal
null, often used to represent an absent or empty value if the application assigns it that meaning. - Object: A collection of string-named values in curly braces.
- Array: An ordered sequence of values in square brackets.
JSON syntax rules that commonly cause errors
JSON is deliberately stricter than many programming-language notations and configuration formats. A parser accepting an extension does not make that extension portable JSON.
- Put double quotation marks around object names and string values. Single-quoted strings are not valid JSON.
- Separate each object name from its value with a colon, and separate members or array elements with commas.
- Use the lowercase literals
true,false, andnull. Capitalized or quoted versions are different text. - Do not add comments or a trailing comma after the last member or element. RFC 8259’s grammar does not permit either.
- Do not write leading zeros on ordinary numbers:
0is valid, but07is not.NaNandInfinityare not JSON numbers. - A JSON text can be any serialized JSON value, not just an object or array. Objects and arrays are simply common top-level forms.
For networked JSON exchange outside a closed ecosystem, RFC 8259 specifies UTF-8. Using standard syntax and UTF-8 improves interoperability across implementations.
Is JSON the same as JavaScript?
No. JSON’s design was derived from JavaScript object-literal conventions, and the names look familiar to JavaScript developers, but valid JSON is not any arbitrary JavaScript expression. JSON is data text: it does not include executable features such as assignments or function calls. JavaScript is a programming language with expressions and behavior beyond JSON’s limited data syntax.
For instance, the following is not JSON because it uses a single-quoted string and includes a function call:
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
{ name: 'Mina', score: calculateScore() }
The quoted object at the beginning of this article is JSON because its names and string values use double quotes, its values follow JSON’s grammar, and it contains no executable code.
Parsing JSON safely and checking what it means
Use a dedicated JSON parser to convert JSON text into values in your programming language. Do not use JavaScript eval() or a similar evaluation function to parse untrusted text. RFC 8259 warns that evaluation can execute code and is generally an unacceptable security risk. A JSON parser reads data according to JSON syntax rather than treating the input as a program.
A successful parse only shows that the text conforms to the parser’s accepted JSON syntax. It does not establish that the data is complete or appropriate for an application. A valid object might omit a field the application requires, give a field the wrong kind of value for that application, or contain an unrecognized value. Applications need their own validation and interpretation rules after parsing.
A practical validation sequence
- Parse first. Use the language’s JSON parser and handle its syntax errors. If parsing fails, inspect quotation marks, commas, colons, brackets, literal capitalization, and number spelling.
- Check the shape. Confirm that the top-level value is the expected kind, such as an object rather than an array.
- Validate application requirements. Check required member names, expected value types, allowed ranges, and any relationships between fields.
- Handle unexpected data deliberately. Decide how the application should respond to missing, extra, or invalid values rather than assuming every syntactically valid document is usable.
Using JSON with a web API
JSON commonly appears in API requests and responses. A request may encode settings as JSON, while a response may return information as JSON. The exact fields and required types come from that API’s documentation; JSON itself does not define them. For example, when an API accepts query parameters, those parameters are text values in a URL rather than a JSON document, even though the API may return a JSON response.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Example: request a website screenshot
ScreenshotNeo is a website screenshot API and MCP server for developers. The following cURL command makes a GET request with a URL and saves the returned screenshot as a WebP file:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for request parameters and response details. This example uses URL query parameters, not a JSON request body; the distinction is useful when reading API documentation.
Or skip the browser setup
One GET request can return a screenshot without setting up a browser locally:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and the response includes page-verdict and billing headers. Its MCP server provides screenshot tools for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan to try it without a card.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Common JSON problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Parser flags a string or member name | Single quotes, missing double quotes, or an unescaped quotation mark | Use double quotes for JSON strings and names, and escape quotation marks inside a string as required by JSON syntax. |
| Parser reports an unexpected token near a comma | A trailing comma or missing comma between values | Remove a comma after the final item, or add the missing comma between adjacent items. |
true, false, or null is rejected |
The literal is capitalized or enclosed in quotes when a JSON value was intended | Use the exact lowercase literal without quotes. |
| A number is rejected | It uses a leading zero, NaN, or Infinity |
Write a number permitted by JSON’s grammar; represent any application-specific special case using an agreed JSON-compatible representation. |
| Parsing succeeds but the application rejects the document | Syntax is valid, but required fields or application rules are not satisfied | Validate the parsed value against the application’s expected shape and semantics. |
| Data behaves differently across systems | Implementations rely on nonstandard syntax, an assumed object-member order, or unspecified field meanings | Exchange standard JSON, use UTF-8 for networked exchange outside closed ecosystems, treat arrays as ordered and objects as named collections, and document field meanings separately. |
Standards behind JSON
The IETF’s RFC 8259 (STD 90), published in December 2017, describes JSON’s grammar, interoperability considerations, encoding guidance, media type, and security considerations. Ecma International’s ECMA-404, second edition, published in December 2017, defines JSON syntax and deliberately does not define application semantics or programming-language mappings. Together, these standards help distinguish what makes text JSON from what a specific system expects that JSON to mean.
Frequently Asked Questions
Does JSON have to start with curly braces?
No. A JSON text can represent any JSON value, including a string, number, boolean, null, object, or array.
Can an array contain different kinds of values?
Yes. JSON permits array elements of different types; whether an application accepts a particular mix is up to that application.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Does valid JSON guarantee that a program can use the data?
No. Parsing confirms syntax, not application-specific completeness, types, or meaning.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

