How to parse duplicated keys with different values

Use a ruby filter. Something like this.