Skip to content

Supporting file is not valid JSON

Type URI: https://modeled-information-format.github.io/mif-rs/references/errors/mif-rh-invalid-json/v1 HTTP status: 400 Exit code: 1 Emitted by: mif-rh (MifRhError::Json)

failed to parse {path} as JSON: {source}

This fires when a supporting file — an ontology directory entry, a map file, or harness.config.json — is read successfully at the OS level but its contents fail to parse as JSON. The underlying serde_json parse error is carried through as the {source} in the message, so the exact syntax problem is visible to the caller rather than being swallowed.

MaybeIncorrect — correct the file so it is valid JSON, then retry.