I want to make dic with check date
So I made
import json
import sys
import datetime
def check():
with open('menu.json', encoding='utf-8') as json_file:
data = json.load(json_file)
print(str(data)) # or f"{data}"
check()
with this json
{
"1": [
"Date 1 Food.",
],
"2": [
"Date 2 Food",
],
}
But how can I line break I tried json.load.dumps but not works...
and how can I makes output different by date with json? 1,2 is different days