Test, validate and match regular expressions
This regex validates JSON (JavaScript Object Notation) strings, checking if they conform to the standard JSON format for objects and arrays. It handles nested structures, string values with escape sequences, numbers, booleans, and null values. This pattern is particularly useful for validating JSON data before parsing or for creating syntax highlighting in code editors.