Dev.to
7/19/2026

Bulk-validating JSON test cases against a CSV schema with JSONPath (jsonpath-plus)
Short summary
A walkthrough of a JSON Expected Value Validator tool that lets you define JSONPath-based validation rules in a CSV and apply them across multiple JSON test cases simultaneously. The tool supports four comparison modes (exact, unordered, contains, length_only) and handles CSV escaping for JSONPath filter expressions with embedded quotes. Built on jsonpath-plus with path normalization and a shared CSV utility.
- •Define validation rules as CSV rows with JSONPath, expected type, required flag, and comparison mode
- •Four comparison modes: exact, unordered (default), contains, and length_only for flexible API testing
- •CSV escaping for JSONPath filters with embedded quotes was the hardest part — shared utility prevents silent corruption
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



