HPCC-12081 Add ToJSON function to ECL

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>