How might I output an array of dictionaries on different lines on a JSON file