get-jpaths
    Preparing search index...

    Function getJPaths

    • Recursively extracts all JSON paths with their corresponding primitive values from an object.

      Parameters

      • obj: unknown

        The input object or value to traverse.

      • options: GetJPathsOptions = {}

        Optional parameters to control traversal and filtering.

      Returns JPathEntry[]

      an array of objects each containing a jpath and its corresponding primitive value.