Parse a model's JSON response into validated facts, defensively. Tolerates a bare array or a { facts: [...] } envelope, skips malformed entries, clamps oversize content, bounds the count, and never throws (bad JSON → []).
{ facts: [...] }
[]
Parse a model's JSON response into validated facts, defensively. Tolerates a bare array or a
{ facts: [...] }envelope, skips malformed entries, clamps oversize content, bounds the count, and never throws (bad JSON →[]).