My python codes:
with open('outputFile.json', 'w') as outfile:
json.dump(ans, outfile, indent=4, separators=(',', ': '))
The output file is
[
{
"rowLength": 5,
"alphabet": [
"Q",
"W",
"I",
"B",
"P",
"A",
"S"
]
},
{
"rowLength": 3,
"alphabet": [
"S",
"D",
"E",
"U",
"I",
"O",
"L"
]
}
]
How to make the inner array into one line? Thanks