v8.0 - Web Designer - Serialize collection

Hi Experts

IS it possible to serialize (preferable JSON) a custom schema collection in web designer? I need to store a collection value in a custom column in the backend for processing.

I tried using GetXMLObject but it throws an error when I tested it (I'm guessing this is because its a custom schema collection and not a database collection)

from myCollection select GetXMLObject()

An error occurred. For more information consult the web application log files. (Unable to cast object of type 'VI.WebRuntime.DataRow' to type 'VI.WebRuntime.IDbObjectRow'.)