Parses a PerseusRenderer from a plain object or JSON string, migrates old formats to the latest schema, and runtime-typechecks the result.
a Result of the parsed PerseusRenderer. If the result is a failure, it will contain an error message describing where in the tree parsing failed.
SyntaxError if the argument is a string that is not well-formed JSON.
Parses a PerseusRenderer from a plain object or JSON string, migrates old formats to the latest schema, and runtime-typechecks the result.