Re: SOLVED Re: $listorrowtojson & $jsontolistorrow ($listtoobjectarray)
Oh my, they may have been there all along!!!
I was so wrapped in this JSON angle, I never looked, sorry, so thank you for pointing that out for us all.
This JSON stuff is reminding me of the XML exercise we looked at 5 years ago. And others that fell by the wayside.
Curiously, I see these methods in O$817?
You seem to be saying they are not in O$10.1?
Or is it the functionality has changed somehow?
Based in Chester in the UK.
On 22/04/2021 10:48, Mike Matthews – Omnis wrote:
UK Support, Luke to be precise, came back this morning with this further help:
I wasn’t using the reverse command of $listtoobjectarray with $objectarraytolist, but when I did, the Omnis List comes back really easily. 🙂
Do OJSON.$listtoobjectarray(lvList,kUniTypeCharacter,lvErrorText) Returns #S1 ## Convert LIST/ROW data into JSON data
Do OJSON.$objectarraytolist(#S1,lvErrorText) Returns #L1 ## Convert JSON data into LIST/ROW
Well now, I have the solution. As Bruno was v10.1 and I’m using v10.2, things have moved on a bit. Giacomo also gave me a hint, and some screen shots from both helped me think a bit.
There are new commands $listtoobjectarray, $listtoarrayarray to play with in v10.2