505 B
505 B
JSON Validator Artifact
A simple JSON validator that checks for the presence of a "valid": true field in JSON files.
Files
json_validator_new.py- The validation scripttest_valid.json- Test file with valid JSON
Verification
Run: python3 /root/.hermes/wizard-outputs/spark/json_validator_new.py /root/.hermes/wizard-outputs/spark/test_valid.json
Expected exit code: 0
Exit Codes
- 0: Valid JSON with valid=true
- 1: Invalid JSON or missing/false valid field
- 2: File not found