💄 indent input json, too

This commit is contained in:
neingeist 2025-06-02 20:26:49 +02:00
parent 81694d8aaf
commit 7e462dfa18
3 changed files with 840 additions and 6 deletions

View file

@ -7,6 +7,9 @@ output_file = 'export_2025-06-02_clean.json'
with open(input_file, 'r', encoding='utf-8') as f:
data = json.load(f)
# indent input file while we're at it
with open(input_file, 'w', encoding='utf-8') as f:
json.dump(data, f, ensure_ascii=False, indent=2)
def normalize_ingredients(recipe):
if 'recipeIngredient' in recipe:

File diff suppressed because one or more lines are too long

View file

@ -522,7 +522,7 @@
"comment": [],
"recipeIngredient": [
"1 Liter Olivenöl",
"0.5 Liter Balsamico Essig",
"0.5 Liter Balsamico-Essig",
"2 Liter Wasser",
"5 EL Senf (Mittelscharf)",
"3 EL Erdbeermarmelade",
@ -574,14 +574,14 @@
"250 g Margarine",
"2 Zehe/n Knoblauch",
"50 g Kräuter gemischt (8-Kräuter)",
"0 None Salz",
"0 None evtl. Pfeffer",
"Salz",
"Pfeffer (schwarz)",
"6 g Fichtenspitzen"
],
"recipeInstructions": [
{
"@type": "HowToStep",
"text": "Weiche Butter schaumig rühren."
"text": "Weiche Margarine/Butter schaumig rühren."
},
{
"@type": "HowToStep",
@ -593,7 +593,7 @@
},
{
"@type": "HowToStep",
"text": "Nach Geschmack nachsalzen und ggf. (leicht) pfeffern. Kalt stellen."
"text": "Nach Geschmack nachsalzen und ggf. leicht pfeffern. Kalt stellen."
}
]
},