I have group by data set but I'm unable to convert it to json. It throws out json with a bad format. TO_excel works fine.
Country Sub amount        
        3   source4      
UK      1   source3      
        1   source1      
US      2   source2      
How can I export groupby dataset to_json?
 
    