Fix comma terminator to create valid json