Coming soon
Transforms raw xml text into JSON object.
{% capture order_xml %} <order> <name>#1003</name> <total>29.99</total> </order> {% endcapture %} {% assign order = order_xml | parse_xml %} {{order | log }}
Above snippet generates below output:
{ "order": { "name": "#1003", "total": 29.99 } }
Last updated 1 year ago