2.0.1 • Published 7 years ago
acamani v2.0.1
Acamani
A minimal utility to describe & resolve paths within JSON objects.
This package provides a single class, JSONPath
, which extends the JavaScript Array
class.
A JSONPath
is an array of the properties that you have to successively access, in order to resolve the path.
To resolve the path within an object, call the asynchronous method jsonPath.resolve(object[, callback])
. If an (asynchronous) callback
is provided, it will receive the value matching the path and replace it, within the object, with its return value.
Copyright & license
Copyright 2018 Ludovic Cyril Michel. Licensed under MIT.