couchdeveloper / JPJson

A JSON Framework for Objective-C and C++
Other
27 stars 2 forks source link

Add a JSON-Path Feature #2

Open couchdeveloper opened 12 years ago

couchdeveloper commented 12 years ago

When parsing a JSON document, oftentimes one is not interested in the complete JSON representation returned as a hierarchy of objects.

A json-path filter could be used to specify a "filter" when parsing - which returns JSON objects whose json-path matches that specified in the json-path filter.

The idea could be even more extended to also taking values of the JOSN object into account - using a predicate comprised of a json-path into the resulting object in order to identify the path to that value and perform a match on that value.

couchdeveloper commented 12 years ago

An experimental json-path feature is already in development.