Pattern AST
  
           | repeated * numbers | len
           |   $value @
          P|     \d+
           |   end
          P|   [ ]
           | end
  
MatchRepeated    (name: numbers, filter: len)
    MatchValue    (name: @, scalar)
        MatchRegex '\\d+'
    MatchRegex '[ ]'
Input String Captured JSON
12 23 34 
{
  "numbers": 3
}

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