Pattern AST
  P| [a-z]+ { \d+ size | int }
MatchRegex '[a-z]+'
MatchValue    (name: size, filter: int, scalar)
    MatchRegex '\\d+'
Input String Captured JSON
a43
{
  "size": 43
}

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