Pattern AST
  P| a{ \d+ digits|int }b
MatchLiteral 'a'
MatchValue    (name: digits, filter: int, scalar)
    MatchRegex '\\d+'
MatchLiteral 'b'
Input String Captured JSON
a34b
{
  "digits": 34
}

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