Writing a simple JSON path parser

from blog Notes on software development, | ↗ original
Let's say we want to implement a simple list filtering language so we can enter a.b = 12 and return only results in a list where the a column is an object that contains a field b that is set to the value 12. What would a filter(jsonPath, equals, listOfObjects) function look like? If we only needed to support object lookup, we might implement...