HF RL Explorer

Task: JSON Validation Using Regular Expressions

Task: JSON Validation Using Regular Expressions: a task in Terminal-Lego-15k (Harbor dataset). Create a shell script that uses regular expressions to validate whether given strings are valid JSON format. While regex cannot perfectly validate all JSON (especially deeply nested structures), you need…

The task

Create a shell script that uses regular expressions to validate whether given strings are valid JSON format. While regex cannot perfectly validate all JSON (especially deeply nested structures), you need to implement a practical regex-based validator that can identify common valid and invalid JSON patterns.

Part of PrimeIntellect/Terminal-Lego-15k.