fromJson
Parses an error member from a resolution-metadata JSON structure.
Accepts both the CR object form and the legacy v0.3 bare-string form; the legacy string is preserved as detail so upstream diagnostics are not lost. This is a defensive parser for untrusted/heterogeneous upstream data (§11: public universal resolvers still emit legacy strings, and third-party drivers may emit malformed shapes) — malformed members degrade to null/absent rather than throwing, so a single bad field never crashes the caller.