That's one of the things that attracted me to this idea. Once you've got a
JSON/YAML parser, everything else is easy. You frequently don't even need
the serializer - for your examples, those are just as easily done with
`printf` as an official serializer.

I'm also unclear if there is a really a difference in JSON vs. YAML in this
regard - any valid JSON is also valid YAML and my experience with YAML
based serializers is they output JSON because it's (1) valid YAML and (2)
more portable. AFAICT there is no difference between JSON and YAML with
regard to live data structures, it's purely the syntax that's valid for
parsing. I strongly suspect we can use YAMLCPP internally and treat it as a
JSON interface.

Reply via email to