{
    "title": "{{title}}",

    "ingredients": [
        {% for amount, unit, ingredient in ingredients %}
        [{{amount}}, "{{unit}}", "{{ingredient}}"]{% if not loop.last %},{% endif %}
        {% endfor %}
    ],

    "method": [
        {% for step in method %}
            "{{step}}"{% if not loop.last %},{% endif %}
        {% endfor %}
    ]
}

{
    "title": "{{title}}",

    "ingredients": [
        {% for amount, unit, ingredient in ingredients %}
        [{% if amount %}{{amount}}{% else %}null{% endif %}, {% if unit %}"{{unit}}"{% else %}null{% endif %}, "{{ingredient}}"]{% if not loop.last %},{% endif %}
        {% endfor %}
    ],

    "method": [
        {% for step in method %}
            "{{step}}"{% if not loop.last %},{% endif %}
        {% endfor %}
    ]
}

Fix null values in the ingredients quantities and units.
Fix null values in the ingredients quantities and units.
