Rule of thumb: valid json is valid yaml. If you’re ever unsure, do it the old fashioned way.
Comment on Show me a better text format for serializing
colourlessidea@feddit.de 11 months ago
YAML is pretty good for readability, pretty awful for writability
NewPerspective@lemmy.world 11 months ago
intensely_human@lemm.ee 11 months ago
I really don’t see how that’s true.
You’re telling me this is valid yaml?
{ firstName: “Intensely” }
How is that yaml?
NewPerspective@lemmy.world 11 months ago
Don’t listen to me, put that in a yaml validator for yourself: yamllint.com
Fal@yiffit.net 11 months ago
No, because that’s not valid json
synae@lemmy.sdf.org 11 months ago
Interesting, I find that the other reasonable options are far less writable than yaml