Skip to main content

json_processor

Function json_processor 

Source
pub fn json_processor(resolution: &mut Resolution, _input: &ProcessorInput<'_>)
Expand description

Read the source as standard JSON.

Malformed JSON fails the parse, matching the canonical TypeScript json processor, which reads through a strict-JSON jsonic instance and lets its error escape. Substituting the raw text instead hid the broken file and handed the caller a string where a map was expected.