Pattern AST
  
          | repeated files
         P|     { [a-z]+ word } { \d+ number }
          | end
  
MatchRepeated    (name: files)
    MatchValue    (name: word, scalar)
        MatchRegex '[a-z]+'
    MatchValue    (name: number, scalar)
        MatchRegex '\\d+'
Input String Captured JSON
ab34bc45
{
  "files": [
    {
      "word": "ab", 
      "number": "34"
    }, 
    {
      "word": "bc", 
      "number": "45"
    }
  ]
}

This HTML fragment was automatically generated from the test cases for JSON Pattern.