Pattern AST
  
           | $value digits|int
          P|    \d+
           | end
  
MatchValue    (name: digits, filter: int, scalar)
    MatchRegex '\\d+'
Input String Captured JSON
10
{
  "digits": 10
}
Pattern AST
  
           | $value digits|int
          P|    \d+
           | end
  
MatchValue    (name: digits, filter: int, scalar)
    MatchRegex '\\d+'
Input String Captured JSON
10!
{
  "digits": 10
}

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