valijson
« Back to VersTracker
Description:
Header-only C++ library for JSON Schema validation
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ json-schema validation header-only library
Install: brew install valijson
About:
Valijson is a header-only C++ library for validating JSON documents against JSON Schema drafts 2020-12, 2019-09, 07, and 04. It provides a robust, dependency-free solution for enforcing data contracts and structure within C++ applications. Its primary value is in its ease of integration, requiring only the inclusion of header files.
Key Features:
  • Header-only library for easy integration
  • Supports multiple JSON Schema drafts
  • No external dependencies required
  • Compatible with standard C++11+ libraries
Use Cases:
  • Validating API request and response payloads in C++ backends
  • Ensuring configuration file integrity in C++ applications
  • Enforcing data contracts in microservices
Alternatives:
  • nlohmann/json – Valijson is specifically for validation (often used alongside nlohmann/json), whereas nlohmann/json is primarily a general-purpose JSON parsing library.
  • json-schema-validator – Valijson is header-only, while json-schema-validator typically requires a build step and linking against the Boost library.
Version History
Detected Version Rev Change Commit