Free tools Windows power users keep installed
One-click scans. No signup required.
iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
JSONC is a human-editable configuration dialect built on JSON. It adds JavaScript-style comments, and some JSONC parsers also allow a comma after the final array item or object member. RFC 8259 JSON defines neither extension, so a strict JSON parser is entitled to reject both.
The reason is a division of purpose: JSON keeps a small, predictable grammar for interoperable data exchange, while JSONC makes source files easier for people to explain and maintain. Trailing-comma support is optional rather than a universal JSONC rule, so the parser and its settings determine what is accepted.
The standards boundary: what strict JSON actually permits
RFC 8259, published in December 2017, describes JSON as “a lightweight, text-based, language-independent data interchange format.” Its design goals include minimal syntax, portability and interoperability. The grammar defines arrays and objects as comma-separated sequences, but it has no production for a comma after the final value or member. It also has no comment token.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Commas separate items; they do not terminate a list
In strict JSON, an array such as [1, 2, 3] has two separators: one between 1 and 2 and one between 2 and 3. An object such as {"a": 1, "b": 2} follows the same rule for members. A comma immediately before ] or } is therefore outside the grammar, not merely a stylistic variation.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
Comments are not insignificant JSON whitespace
Whitespace may appear between JSON tokens, but a comment is a different kind of lexical construct. Because RFC 8259 does not define // or /* ... */ comments, a conforming parser can report an error as soon as it encounters one. A file can look like JavaScript and still be invalid JSON.
What JSONC adds
The JSONC specification draft defines JSONC as JSON plus two JavaScript-style comment forms. It also discusses trailing commas as an optional parser feature, not a required part of every JSONC implementation.
Line and block comments
A line comment begins with // and runs to the end of the line. A block comment begins with /* and ends with */; block comments do not nest. Comments can occur where insignificant whitespace is allowed, such as between object members or array values, but they are not allowed inside a quoted string. The JSONC draft says comments are ignored during parsing and “MUST NOT affect consumption,” so they do not become properties, array elements or other values in the resulting data representation.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →{
"port": 8080, // Public listener
/* Keep this low in development. */
"debug": true
}
After parsing, the represented data is equivalent to the same object without the comments. A parser that preserves source text for an editor may retain comments separately, but they are not part of the JSON value delivered to application code.
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
Trailing commas are deliberately optional
JSONC implementations differ on the second extension. The reference jsonc-parser described by the draft sets allowTrailingComma to false by default. A trailing comma is an error unless the caller enables that option. The draft also notes that Visual Studio Code’s JSON-with-comments mode accepts trailing commas, while warning about them outside certain official configuration files. Those editor behaviors are release-sensitive; check the current documentation for the tool you use.
{
"hosts": [
"api.example.test",
"worker.example.test",
],
}
The comments and final commas in this example are independent features. A parser may accept comments while rejecting the commas, or accept both when configured to do so.
There is no single, universal JSONC mode
The Common JSONC Specification project describes a commonly implemented configuration dialect, but its repository labels the document as a draft as of 2025-09-01. It records ongoing discussion about trailing commas and notes that variants differ: some disallow them, while other spin-offs add syntax beyond the common variant. “JSONC” therefore identifies a family of practices rather than one immutable parser contract.
Why configuration files benefit from the extensions
Comments keep explanation next to the setting
Configuration often needs operational context: why a value has a non-obvious limit, which environment uses it, or when a temporary switch can be removed. A comment places that explanation beside the setting without inventing a data property that an application must ignore. This is the human-maintenance case the JSONC draft targets.
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Trailing commas reduce punctuation edits
When a parser permits a trailing comma, adding, deleting or reordering the last entry does not require changing the previous line’s punctuation. That is a practical editing convenience inferred from the syntax, not a measured performance or reliability result. It applies only when the selected parser and project style permit the extension.
Human-authored source and machine interchange have different constraints
A configuration file is read and edited by people, so annotations and forgiving punctuation can be useful. Data sent between independent systems has a different priority: every implementation needs to agree on one grammar. Keeping comments and trailing commas out of RFC 8259 JSON reduces the chance that one receiver silently accepts a construct another receiver rejects.
JSON versus JSONC at a glance
| Feature | RFC 8259 JSON | JSONC draft and common practice |
|---|---|---|
Line comments (//) |
Not defined; strict parsers may reject them. | Supported by the JSONC draft and many configuration parsers. |
Block comments (/* ... */) |
Not defined. | Supported; block comments do not nest. |
| Trailing commas | Not valid. | Optional and implementation-dependent; reference jsonc-parser disables them by default. |
| Comments in parsed data | Not applicable. | Ignored and must not change the resulting JSON data representation. |
| Recommended file extension | .json |
The JSONC draft recommends .jsonc. |
| Recommended media type | application/json |
The JSONC draft recommends application/jsonc; labeling JSONC as application/json can mislead strict consumers. |
| Interoperability | Defined by the RFC grammar. | Depends on the exact parser, options and dialect. |
Why a file named settings.json may still accept comments
Editors frequently provide a language mode for “JSON with comments” so that a well-known configuration filename can offer diagnostics, completion and annotations. The filename alone does not change RFC 8259; the editor or consuming program is choosing a JSONC-like parser. That explains the common question, “Why does settings.json support comments?” The answer is that the host application has assigned the file a permissive configuration grammar, even though the suffix says .json.
Windows 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 reinstallCrashes, 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 minuteThis local acceptance does not guarantee that another program will read the same bytes. A command-line validator, API endpoint or build step using strict JSON can reject the file at the first comment or trailing comma.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
How to use JSONC without breaking strict consumers
- Identify the actual dialect. Read the consuming tool’s documentation and record whether line comments, block comments and trailing commas are accepted. Do not infer behavior from the file extension or editor highlighting.
- Check trailing-comma defaults. If you use
jsonc-parser, the documented default isallowTrailingComma: false. Enable the option only when the project deliberately allows it, and make the setting explicit in code or configuration. - Keep JSONC at the authoring boundary. Store comments and human-oriented formatting in the configuration source that people edit. Treat that source as distinct from payloads sent to systems that advertise RFC 8259 JSON.
- Parse, then serialize for interchange. Read the JSONC source with a parser configured for the chosen dialect, obtain its data value, and serialize that value with a standards-compliant JSON serializer. Serialization removes comments and emits commas only where RFC 8259 permits them.
- Validate the serialized output. Run the resulting text through a strict JSON parser before publishing it, embedding it in another document or sending it over an API. This catches accidental comments, trailing commas or other extensions that may have entered during editing.
- Label the formats honestly. Use
.jsoncand, when transmitting JSONC itself, the draft’s recommendedapplication/jsoncmedia type. Useapplication/jsononly for output that is valid strict JSON.
Parsing and serializing normally discards comments because comments are not part of the data model. If preserving annotations matters, use a source-preserving editor or syntax-tree tool and keep that annotated source separate from the strict JSON artifact.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Diagnosing common failures
“Unexpected token /”
The consumer is probably using a strict JSON lexer and encountered a line or block comment. Remove comments for that payload, or parse the file as JSONC before converting it to strict JSON.
“Unexpected token ]” or “Unexpected token }” after a comma
The parser reached an array or object close after a trailing comma. Either remove the final comma or enable the parser’s documented trailing-comma option if the file is intentionally JSONC and the application supports that setting.
The editor accepts the file but a deployment step fails
The editor and deployment step are using different grammars. Make the parser choice explicit in the build process, generate a strict JSON artifact, and validate that artifact with the same class of parser used by the deployment target.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Comments disappear after formatting
A formatter that parses to ordinary JSON data cannot retain comments that are outside that data model. Configure a comment-preserving formatter for the source file, or accept that comments belong only in the human-maintained JSONC version.
What to compare when choosing a parser
“Supports JSONC” is not enough information to predict compatibility. Compare these five behaviors in the implementation’s current documentation:
- Whether
//line comments are accepted. - Whether
/* ... */block comments are accepted and whether nesting is rejected. - Whether trailing commas are accepted by default, rejected, or enabled only through an option.
- Whether parsing discards comments and formatting or exposes a source-preserving representation.
- Whether the serializer’s output is valid RFC 8259 JSON for interchange.
Deno’s documentation, for example, presents JSONC as JSON extended with comments and trailing commas for friendlier configuration editing and demonstrates parsing it with a standard-library parser: Deno: Parsing JSONC. That example documents Deno’s behavior; it should not be treated as proof that every JSONC-labeled parser accepts the same syntax.
The practical rule
Use strict JSON when bytes must be portable between independent systems. Use JSONC when people maintain configuration and the selected tool documents the extensions you need. Keep the boundary visible: comments and optional trailing commas belong to the authoring dialect, while data exchanged as application/json must be serialized as RFC 8259 JSON.
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.

