UNPKG

@vecrea/oid4vc-prex

Version:

A TypeScript library for handling OpenID for Verifiable Credentials (OID4VC) Presentation Exchange operations

17 lines (16 loc) 582 B
/** * JSON Path related operations */ export declare class JsonPathOps { /** * Checks that the provided [path][String] is JSON Path */ static isValid(path: string): boolean; /** * Extracts from given [JSON][jsonString] the content * at [path][jsonPath]. Returns the value found at the path, if found */ static getJsonAtPath(jsonPath: string, jsonString: string): string; } export declare const toJsonPath: (path: string) => import("@vecrea/oid4vc-core/utils").Result<any>; export declare const toJsonString: (jsonNode: unknown) => string;