Skip to main content

Function: extractJsonValueAtPath()

extractJsonValueAtPath(payload: unknown, path: string): unknown

Defined in: electron/services/monitoring/shared/httpMonitorJsonUtils.ts:72

Internal

Extracts a nested value from a JSON-compatible payload using a dot path.

Parameters

payload

unknown

Payload to traverse.

path

string

Dot/bracket path (e.g. data.items[0].name).

Returns

unknown

Resolved value or undefined when not found.