ArrayToJSON(tdata)
Posted: Wed Nov 04, 2020 3:02 pm
I have an livecode array which has to be converted to json, see attachments.
If i use:
then everything in json is of type string (first Attachment)
If i use
then numbers are of type Int32 or Double (second Attachment),
This json is almost as i need it,
but the key mProdNo should always be of type string.
What would be the best way to achieve it?
If i use:
Code: Select all
put ArrayToJSON(tdata,"string") into tdata
If i use
Code: Select all
put ArrayToJSON(tdata) into tdata
This json is almost as i need it,
but the key mProdNo should always be of type string.
What would be the best way to achieve it?