fixed duplicate keys in JSON