json correction

Using list.extend method instead of list.append