A defaultdict can solve the task.
It's also not json, it's a Python dict. Json was it before in form of a string.
from collections import defaultdict data = [{"signal_name":"X", "signal_value":"valueX1", "time":"timeX1","par":"id1"}, {"signal_name":"Y", "signal_value":"valueY1", "time":"timeY1","par":"id2"}, {"signal_name":"Z", "signal_value":"valueZ1", "time":"timeZ1","par":"id3"}, {"signal_name":"X", "signal_value":"valueX2", "time":"timeX2","par":"id5"}] measurements = defaultdict(list) for signal in data: name, value = signal['signal_name'], signal['signal_value'] measurements[name].append(value)PS: The original data in your post has a syntax error. You're using a = two times instead of a colon.
It's also not json, it's a Python dict. Json was it before in form of a string.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!