What is JSON?
JSON (JavaScript Object Notation) is a lightweight, text-based data interchange format. It is easy for humans to read and write, and easy for machines to parse and generate. JSON is built on two structures: a collection of name/value pairs (objects, written with curly braces {}) and an ordered list of values (arrays, written with square brackets []).
JSON is the most widely used data format for REST APIs, configuration files, NoSQL databases (MongoDB, Firebase, DynamoDB), and frontend-backend communication. Common JSON use cases include API responses, application settings, data storage, and message queuing.
Frequently Asked Questions
Is IRJSON completely free?
Yes. IRJSON is 100% free with no subscription, no sign-up, no paywalls and no advertisements. All features — formatting, diff, JWT decoding, repair, query, schema validation, conversion and AI — are free.
Is my JSON data secure and private?
Yes. All JSON processing happens entirely in your browser using JavaScript. Your data is never sent to any server. IRJSON is 100% client-side. Even the AI assistant runs on-device by default using transformers.js.
Does IRJSON work offline?
Yes. IRJSON is a Progressive Web App (PWA). After your first visit, you can install it and use all features — formatting, diff, JWT decoding, repair and more — with no internet connection.
Can IRJSON handle large JSON files?
Yes. IRJSON uses Monaco Editor (the same editor powering VS Code) and virtual scrolling for the tree view. It handles JSON files with hundreds of thousands of nodes efficiently.
What is the difference between JSON and JSONC?
JSONC (JSON with Comments) is a superset of JSON that allows JavaScript-style comments (// single-line and /* multi-line */) and trailing commas. IRJSON supports strict JSON, lenient JSONC and JSON5 parsing modes.
How do I validate JSON against a schema?
Open irjson.com/schema. Paste your JSON Schema on the left and load your JSON in the viewer. IRJSON validates your JSON against the schema in real time using AJV and shows detailed error messages with paths.
Can I convert JSON to YAML online?
Yes. Open irjson.com/convert, load your JSON, and select YAML as the output format. The conversion is instant and free.
How do I compare two JSON files?
Open irjson.com/diff. Paste the original JSON in the left panel and the modified JSON in the right panel. All additions, deletions and changes are highlighted immediately.
What is JSONPath?
JSONPath is a query language for JSON, analogous to XPath for XML. It lets you extract specific values from nested JSON using path expressions. For example, $.users[*].email extracts all email addresses from an array of user objects. IRJSON supports JSONPath, JMESPath and jq.
Does IRJSON have a VS Code extension?
Yes. The IRJSON VS Code extension is available on the Visual Studio Code Marketplace. It brings all IRJSON tools directly into your editor, allowing you to format, validate, diff and query JSON files without leaving VS Code.
What keyboard shortcuts does IRJSON support?
IRJSON supports many keyboard shortcuts for power users:
- Ctrl+Enter — Format JSON
- Ctrl+Shift+M — Minify JSON
- Ctrl+Shift+S — Sort keys alphabetically
- Ctrl+D — Download JSON file
- Ctrl+E — Expand all nodes in tree view
- Ctrl+Shift+E — Collapse all nodes
- Ctrl+Shift+C — Copy formatted JSON
- Ctrl+Shift+X — Copy minified JSON
What is a JWT token?
A JWT (JSON Web Token) is a compact, URL-safe token format used to securely transmit information between parties. A JWT has three base64url-encoded segments separated by dots: the header (algorithm and token type), the payload (claims about the entity), and the signature (used to verify the token was not tampered with). JWTs are widely used for authentication and authorisation in web applications.
How do I fix "Unexpected token" JSON errors?
An "Unexpected token" error usually means your JSON has a syntax mistake. Common causes: trailing commas ({"a":1,}), missing quotes around keys ({name: "Alice"}), single quotes instead of double quotes ({'name': 'Alice'}), or JavaScript values like undefined or NaN that are not valid JSON. Use irjson.com/repair to automatically fix these errors.
Can I minify JSON for production?
Yes. Open IRJSON, paste your JSON, and press Ctrl+Shift+M or click Minify. All whitespace is removed to produce the smallest possible JSON string. You can also visit irjson.com/minifier directly.
Is there a JSON flatten tool?
Yes. IRJSON can flatten nested JSON objects to a flat key-value format using dot notation. Visit irjson.com/flatten or use the Transform menu in the viewer toolbar. Unflatten is also supported.
How is IRJSON different from jwt.io?
While jwt.io is a dedicated JWT debugger, IRJSON's JWT decoder decodes tokens 100% client-side using standard browser APIs — no data is sent to a server. Additionally, IRJSON provides a full suite of JSON tools (formatter, diff, repair, query, schema) in one place.