Skip to content

schemaFromJSON

function schemaFromJSON(text): WorkbookSchema;

Parses and sanity-checks a schema exported as JSON. Throws a TextError that says what is wrong: its text to show in the editor’s language, its message in English.

Parameter Type
text string

WorkbookSchema