<s> import json <EOL> with open ( '<STR_LIT>' , '<STR_LIT:r>' ) as f : <EOL> content = f . readlines ( ) <EOL> content = [ x . strip ( '<STR_LIT:\n>' ) for x in content ] <EOL> content = [ x for x in content if x and not x . startswith ( '<STR_LIT:#>' ) ] <EOL> content . insert ( <NUM_LIT:0> , "<STR_LIT>" ) <EOL> with open ( '<STR_LIT>' , '<STR_LIT:wb>' ) as f : <EOL> json . dump ( content , f , indent = <NUM_LIT:2> , ensure_ascii = False ) </s>
