Skip Navigation

Show me a better text format for serializing

imgur.com imgur.com

Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.

imgur.com

And I'll show you YAML

(a continuation of this post)

54

You're viewing a single thread.

54 comments
  • For serializing? I'd probably just go with json.

    For content meant to be written or edited by humans? YAML all day baby

    • Ever tried NestedText? It's like basic YAML but everything is a string (types are up to the code that ingests it), and you never ever need to escape a character.

      • I've got too many consumers that I don't control which dictate their input formats. And to be quite honest, "types are up to the code that ingests it" sounds like a huge negative to me.

        • Ah, well I love that policy (types being in code, not configs). FWIW I sometimes use it as a hand-edited document, with a small type-specifying file, to generate json/yaml/toml for other programs to load.

You've viewed 54 comments.