Have to parse and then write out as json to get it to render correctly
reworked to get around YAML/JSON discrepancies