I find JSON better for serialization/deserialization. It's a bit tedious to write by hand but who writes JSON by hand?
I find even plain json easier to write than yaml. Especially when you factor in the scope of mistakes. Tiny mistakes can completely break the structure of a yaml document in ways that are still valid yaml. With json I'll catch that because auto-indenting will follow the actual structure