I have a list like this :
{'serial1': 'BPCE-RNHC-25G8', 'subject1': 'EMP004', 'serial2': '7QF2-6HI9-XKZZ', 'subject2': 'EMP005', 'serial3': '8FIW-9JRB-NY4J', 'subject3': 'EMP003', 'serial4': 'SG8P-YQKG-ZV3C', 'subject4': 'EMP002', 'serial5': 'PBF7-WZ
HT-WPZR', 'subject5': 'EMP001'}
When I send this list over my html template using for loop , the serial and subject value is separated and divide into 2 column which represent:

My desire output is the serial and subject appear on the same column for the same record. For example:

As you can see my dict has serial1,2,3.. and subject 1,2,3... How can I combine the serial(n) with subject(n) as one item in the json list? So that i could display it on my HTML as 1 item?