JSON Studio
JSON Studio is an offline toolkit for working with JSON in Visual Studio. Use it to inspect payloads, generate model classes, prepare test data, and work with JSON Schema and OpenAPI from one tool window.
Edit and inspect JSON
- Open multiple documents and switch between syntax-highlighted Text, Tree, and Grid views.
- Format, minify, validate, escape, and unescape JSON. Find and replace text, fold sections, and toggle word wrap or line numbers.
- Expand nested objects and arrays in the Grid. Filter rows, copy cells or rows, and edit scalar values with undo support.
- Send selected JSON from the Visual Studio editor to JSON Studio through the editor context menu.
Generate classes and mock data
- JSON to Class infers model types from sample JSON, including nested objects, collections, and optional or nullable fields. Preview the output, override field names or types, and export generated files. You can also add generated C# files to a selected C# project.
- Supported output languages include C#, VB.NET, TypeScript, JavaScript, Java, Python, Go, Kotlin, Dart, Swift, and Rust.
- Class to Mock JSON analyzes pasted C# declarations or source from the active C# project. Generate reproducible data with a seed, use English or Thai sample values, and apply profiles and field rules. Preview a single record or export a batch. An explicit invalid-data mode helps test validation and error handling.
Compare, query, and convert
- Compare shows line-level or structural differences between two JSON inputs. Options include ignoring object or array order, matching array items by a key, and excluding selected paths.
- Query finds values using JSONPath and shows each match with its path. Copy a matching path or export the results.
- Converter converts between JSON and XML, YAML, CSV, or XLSX. It also generates SQL Server or PostgreSQL
INSERT statements for review and export.
Work with JSON Schema and OpenAPI
- JSON Schema infers a schema from sample JSON, validates an instance, and generates sample data or model classes. It supports a subset of JSON Schema Draft 2020-12 and reports unsupported keywords.
- OpenAPI opens local OpenAPI 3.0 and 3.1 files in JSON or YAML. Browse operations, inspect request and response schemas, and generate mock payloads or model classes. References resolve within the same document.
Appearance and privacy
JSON Studio can follow the Visual Studio theme or use its own Light, Dark, or High Contrast appearance. You can adjust the editor font, size, and accent color.
The extension processes documents locally. It does not upload JSON, source code, schemas, or API specifications, and it does not send telemetry.
Requirements and getting started
- Visual Studio 2022 version 17.14 or later, or Visual Studio 2026.
- Community, Professional, and Enterprise editions on x64.
After installing the extension, restart Visual Studio and open Tools > JSON Studio.
| |