JSON and YAML are interchangeable without loss, since they represent the same structures. CSV is ideal for flat lists of objects (it becomes a table) and loses deep nesting. XML has no universal mapping to objects, so we use a pragmatic convention: elements become keys and repeated tags become lists. For deeply nested data, prefer JSON or YAML.