HPCC-10674 ECL support for writing JSON files

Test case will improve with the upcoming addition of reading json files.. as I can then read and output what has first been written.

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Not obvious why you would subtract 1..