API conversion from XML to Json

Did you try the solution I posted?

PHP SC formatter:

<?php

namespace lib\core;

function formatter_xml2json($val) {
    $xml = simplexml_load_string(strval($val));
    return json_decode(json_encode($xml));
}

It's pretty simple.

{{ api1.data.xml2json() }}