Also available as solution for processing large JSON data:
Learn moreEasy to use JSON validator to check one or multiple JSON data files.
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.
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
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 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)
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"
-1 if any file is not valid,
not well-formed, or has no schema assigned. A return value of 0 indicates success.
JSONBuddy is more than just a JSON editor for Windows ®. Learn more on clicking the images and links below.
See in detail how your JSON data is validated using the JSON Schema validation debugger.
Try hereXML, JSON, CSV and HTML conversion tool. Import CSV text and get JSON, XML or HTML.
Read MoreUse the streaming JSON formatter to get pretty JSON.
Verify how a set of data files align with your JSON Schema resources. Easy and automated.
Get a complete JSON Schema designer with extended support for creating and testing JSON schema specifications.
Read MoreImport from any CSV text and get structured JSON or XML data in the editor.
Read MoreJSON editor with built-in JSON pointer engine. Useful on creating JSON Schema documents and for navigation.