Save a list object in json file to disk

write.json(x, file)

Arguments

x

list object

file

file path