Use yaml instead of json for serialization.