HPCC-12081 Add ToJSON function to ECL

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Will need a fix in LN repo too or that will not build