I have json file which has duplicate keys.
Example
{
  "data":"abc",
  "data":"xyz"
}
I want to make this as { "data1":"abc", "data2":"xyz" }
I tried using object_pairs_hook with json_loads, but it is not working. Could anyone one help me with Python solution for above problem
 
     
     
    