ArrayList toJSON method support

Convert to JSON string the ArrayList