s3u/JSONPath — Issue #6: Feature: get all paths in an object
Author: BryanDonovan
Created: 2011-12-12 19:47:11+00:00
State: open

A very useful feature (for me anyway) would be a method that lets you get all the paths in an object. Something like:

jsonpath.paths(obj);

.. and have it return an array of unique paths.

The use case for me is to compare two JSON objects and assert that they have the same JSONPaths, ignoring the count and order of how the paths occur in the objects.