get-jpaths
    Preparing search index...

    Function getJPathsAsObject

    • 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 Record<string, string | number | boolean>

      an object mapping jpaths to their corresponding primitive values.