Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for YAML. Simple Dict by ssk8
def yaml(a):
b = dict([l.split(": ") for l in sorted(a.splitlines()) if l])
for k,v in b.items():
if v.isnumeric():
b[k] = int(v)
return b
Jan. 12, 2020