I like both JSON & YAML for different reasons. YAML is a great configuration format; it's fantastic for being read and written by humans. JSON is much better as a serialization format.
Write config files in YAML. Write APIs in JSON.
Write config files in YAML. Write APIs in JSON.