My Input JSON data:
{
    "data": [
        {
            "config": "current",
            "id": "0"
        },
        {
            "config": "current",
            "id": "1"
        },
        {
            "config": "current",
            "id": "2"
        },
        {
            "config": "current",
            "id": "3"
        },
        {
            "config": "previous",
            "id": "4",
        },
        {
            "config": "previous",
            "id": "5"
        },
        {
            "config": "current",
            "id": "6"
        }
    ]
}
I want to form a dictionary of lists out of above input data based on common key/value pair:
{
    "current": ["0", "1", "2", "3", "6"],
    "previous": ["4", "5"]
}
How can this be achieved using python?
 
     
    