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

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