Strange jsontolistorrow behavior

Kelly Burgess kellyb at montana.com
Wed Nov 23 21:04:30 UTC 2022


Hi Das,

>Do OJSON.$jsontolistorrow(iDataIn) Returns iPrefsList
>
> . . I put in a list with 6 lines, two columns, but what I am getting out is a list with 6 columns, named _1, _2 etc., and in each column is the data for one of my rows.
>The JSON data looks like this right now:
>
>[["grid01","52,51,72,73,82,80"],["grid02","92,174,69,80,250,82,80,60"],["ilOptions.1.$selected","0"],["ilOptions.2.$selected","0"],["ilOptions.3.$selected","0"],["ilOptions.4.$selected","0"]]

What you see there is an array of arrays...

So try this instead:

Do OJSON.$arrayarraytolist(iDataIn) Returns iPrefsList

Kelly


More information about the omnisdev-en mailing list