def decode_ast(registry, ast_json):
if ast_json.get("<STR_LIT>"):<EOL><INDENT>subclass = registry.get_cls(ast_json["<STR_LIT>"], tuple(ast_json["<STR_LIT>"]))<EOL>return subclass(<EOL>ast_json["<STR_LIT>"],<EOL>ast_json["<STR_LIT>"],<EOL>ast_json["<STR_LIT>"],<EOL>position=ast_json["<STR_LIT>"],<EOL>)<EOL><DEDENT>else:<EOL><INDENT>return ast_json<EOL><DEDENT>
JSON decoder for BaseNodes