fromJson

Parse a descriptor from JSON produced by toJson.

Throws

if the text names a major schema version this reader does not understand

if the text decodes but describes a surface the declaration DSL would have refused; the message lists every problem found, not the first