runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[XmlToJson]Remain Json part in Xml if body type string

Open Hooghof opened this issue 1 year ago • 0 comments

Ads a user I wan to keep a Json part in Xml if body type string, so that I don't loose data.

Test case Instance: next Tenant: Microscope Flow: XmlToJsonString

Input

<?xml version="1.0" encoding="UTF-8"?><root><Persons class="array"><element><UserDefinedFieldsJson class="string">{"udf1": "16147","udf2": "16147"}</UserDefinedFieldsJson></element></Persons></root>

Expected output

{
    "Persons": [
        {
            "UserDefinedFieldsJson": {
                "udf1": "16147",
                "udf2": "16147"
            }
        }
    ]
}

Current output

{
    "Persons": {
        "element": {
            "UserDefinedFieldsJson": []
        }
    }
}

Hooghof avatar Jun 26 '24 09:06 Hooghof