I am playing with json output from result sets
I've generated a dynamic resultset and now doing the json and I can get Array's with nested Objects but I'm trying to get to Objects nested with another object
s mainObj = ##class(%Object).$new()
set array=[]
While (result.Next()) {
s object = ##class(%Object).$new()
s object.id = result.Data("ID"
s object.reg = result.Data("Registration")
s object.snNum = result.Data("SatNavVehNumber")
do array.$push(object)
}
w !!,array.$toJSON()
what I


