the compiled document could not be written as JSON

compile/serialize

Generated from the language definition for language 1.0.

Summary: the compiled document could not be written as JSON

Fix: report the diagnostic; a document that compiles should serialize