Hey Community,
my Caché Version is 2013.1 and I can't update now.
I want to serialize a SQL Answer row into an Array filled with objects and then convert it to json.
Actually I use the following, which is very error prone when I have to do that often:
set list = ##class(%Library.ListOfDataTypes).%New()
&sql(
declare queryONLWK01 cursor for
select F0103, F0104
into :articlenumber, :amount
from GL.ONLWK01
where F0001 = :BET and F0002 = :DEB and F0003 = :MIT
)
&sql(open queryONLWK01)
&sql(fetch


code:.png)






