@staticmethod<EOL><INDENT>def _multiline_convert(config, start="<STR_LIT>", end="<STR_LIT>", depth=<NUM_LIT:1>):<DEDENT>
ret = list(config)  <EOL>try:<EOL><INDENT>s = ret.index(start)<EOL>e = s<EOL>while depth:<EOL><INDENT>e = ret.index(end, e + <NUM_LIT:1>)<EOL>depth = depth - <NUM_LIT:1><EOL><DEDENT><DEDENT>except ValueError:  <EOL><INDENT>return ret<EOL><DEDENT>ret[s] = {"<STR_LIT>": ret[s], "<STR_LIT:input>": "<STR_LIT:\n>".join(ret[s + <NUM_LIT:1> : e])}<EOL>del ret[s + <NUM_LIT:1> : e + <NUM_LIT:1>]<EOL>return ret<EOL>
Converts running-config HEREDOC into EAPI JSON dict