Pattern AST
          P| Change[ ]{ \d+ change-num }[ ]on[ ]
           | value date
          P|     { \d+ year } / { \d+ month } / { \d+ day }
           | end
  
MatchRegex 'Change[ ]'
MatchValue    (name: change-num, scalar)
    MatchRegex '\\d+'
MatchRegex '[ ]on[ ]'
MatchValue    (name: date)
    MatchValue    (name: year, scalar)
        MatchRegex '\\d+'
    MatchLiteral '/'
    MatchValue    (name: month, scalar)
        MatchRegex '\\d+'
    MatchLiteral '/'
    MatchValue    (name: day, scalar)
        MatchRegex '\\d+'
Input String Captured JSON
Change 35 on 2009/06/20
{
  "date": {
    "month": "06", 
    "day": "20", 
    "year": "2009"
  }, 
  "change-num": "35"
}

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