Normandy.LLM.Json.Decoder (normandy v1.3.0)

View Source

Decodes a cleaned JSON string via the configured adapter, with an optional one-shot truncated-string recovery pass (see Json.Scanner).

Summary

Functions

decode(content, adapter, opts)

@spec decode(binary(), module(), keyword()) :: {:ok, map()} | {:error, term()}