Converts yaml to hash layout (mergeable with json)