Conversion function

$CVT function converts complete result data set to XML or JSON document. The function has three mandatory parameters:

  1. Pattern engine function call*. String.
  2. Item name. String.
  3. Format. String, XML or JSON.

* - $CVT function applicable to following calls only: $File, $Script, $XML, $WebFile, $JSON, $List, $ListPattern, $Access, $Excel, $Table, $Query

Limitation: only C++ edition of the engine supports this function at the moment.

Example

$CVT($File(d:\Users.txt),UserID,JSON)