Free JSON validator command-line tool for Windows®

JSONBuddy command-line tool - valbuddy.exe
JSON Schema and XML/W3C validator tool
  • Download your free JSON validator command-line tool for Windows®
  • Easy setup. Just run the Windows® installer. No additional configuration required.
  • Use the JSON validator to generate detailed error reports.
  • XML/W3C validation is also supported (using the Apache Xerces parser).

Also available as solution for processing large JSON data:

Learn more

Easy to use JSON validator to check one or multiple JSON data files.

Usage example:

valbuddy.exe -v -verbose -s "D:\Examples\Library\library_schema.json" "D:\Examples\Library\library.json" "D:\Examples\Library\library_invalid.json"

Call "valbuddy.exe" without any paramters to get a list of options in the console window.

Validation output:

D:\Examples\Library\library.json: valid
D:\Examples\Library\library_invalid.json: invalid Did not find the following required properties: [title] Input location: /bib/book/2 Schema location: /properties/bib/properties/book/items
Finished processing

Also available as: JSONBuddy Web API for data validation

If you prefer a web-based solution, you can use the JSONBuddy Web API for validating JSON data. This API is designed for developers who need to validate JSON documents programmatically without installing any software. It offers two endpoints:

The service is fast, secure, and requires an API key for authenticated use.


Command-line Options Reference

The command-line tool (valbuddy.exe) provides a versatile solution for automated validation and processing of XML and JSON data on Windows®. It supports JSON Schema validation, W3C XML checks, pretty-printing, minification, and batch operations — all accessible from the command prompt or scripts.

Usage: ValBuddy.exe [-v | -wf [-verbose] [-s] <file1> ... <fileN>] | [<settings-xml>]

-v             Validate one or more XML or JSON files.
-wf            Perform a well-formedness check.
-verbose       Show a list of all errors and warnings.
-s             Validate against a specific W3C or JSON Schema.
<settings-xml> Run batch validation based on a settings XML file (Pro license only).
            
-jsl           Apply JSON Schema Linter for best practice checks. (Pro)
-jspp          Pretty-print JSON input of any size. Overwrites input if no output is given. (Pro)
-jsm           Minify JSON input. Overwrites input if no output is given.
-jst           Run a JSON Schema test configured in JSONBuddy. (Pro)
-jsv           Use streaming JSON validator for large files. Requires Large Data license.
-j2csv         Convert JSON to CSV. Requires a configuration created in JSONBuddy. (Pro)
            
-patch         Apply JSON Patch operations to one or more documents. (Pro)
-settings-xml  Use XML settings file to automate validation tasks and logging. (Pro)
            
Example Usage
ValBuddy.exe -v -s "D:\Schemas\library_schema.json" "D:\Data\library.json"

ValBuddy.exe -jspp -oj "D:\Output\pretty.json" "D:\Data\raw.json"

ValBuddy.exe -j2csv -config "D:\Configs\export_config.json" -o "D:\Output\data.csv" "D:\Data\source.json"
        
Return Code: The tool returns -1 if any file is not valid, not well-formed, or has no schema assigned. A return value of 0 indicates success.

Take a detailed look at some other features of JSONBuddy

JSONBuddy is more than just a JSON editor for Windows ®. Learn more on clicking the images and links below.