how to create liquid template to transform xml to json and vice versa

Rashmiramchandra Prabhu 66 Reputation points
2023-08-02T06:00:21.7666667+00:00

how to create liquid template to transform xml to json and vice versa in visual studio 2019

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2023-08-02T06:14:02.2666667+00:00

    @Rashmiramchandra Prabhu Thanks for reaching out. You need to use the integration account as you want to use the liquid template

    To create a Liquid template to transform XML to JSON and vice versa in Visual Studio 2019 Logic App, you can follow these steps:

    1. Please refer to this document on the steps managing your logic app/creating the project.
    2. In the Logic App Designer, add a new Liquid action to your workflow.
    3. In the Liquid action, select "Transform JSON to JSON" or "Transform XML to JSON" depending on your input data type.
    4. In the "Template" field, enter your Liquid template code. For example, to transform XML to JSON, you can use the following template:
    [{% JSONArrayFor item in content -%}
          {{item}}
      {% endJSONArrayFor -%}]
    
    1. Save the Liquid action and your Logic App project.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.