Empty key value in JSON

Advertisements I’m trying to parse a string list to JSON. When the list has items, the return is: {‘body’: ‘{"A":"a", "B": ["abc"], "C":"c"}}’ Using json.dumps and then json.loads works out. But when the list is empty, the return is: {‘body’: ‘{"A":"a", "B": , "C": "c"}}’ I get a JSONDecodeError: Expecting value and can’t access the… Read More Empty key value in JSON