locked
JSON TO JSON Transformation in liquid RRS feed

  • Question

  • Hi,

    when i use 'where' array filter in liquid template,it is no supported.How we can add Where filter in liquid template

    i have input like 

    {

    "INTAXCODE":"14",

    "OtherTAXcode:"12"

    }

    Output should return equivalent INTAXCode -14

    {

    "OTHERTAXCODE":"12"

    }

    is there any filter available to fetch the corresponding data


    Monday, May 25, 2020 7:57 AM

All replies

  •         {% for item in content %}
            {% if item.INTAXCODE == '14' %}
            {
                "OTHERTAXCODE":"{{ item.OtherTAXcode }}"
            }
            {% endif %}  
            {% endfor %}
    Morten la Cour
    Monday, May 25, 2020 2:17 PM