SOLVED Re: $listorrowtojson & $jsontolistorrow ($listtoobjectarray)

Mike Matthews - Omnis omnis at lineal.co.uk
Thu Apr 22 20:12:27 UTC 2021


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.

Mike



On 22 Apr 2021, at 16:40, Phil (OmnisList) via omnisdev-en <omnisdev-en at lists.omnis-dev.com<mailto:omnisdev-en at lists.omnis-dev.com>> wrote:

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?

regards
Phil Potter
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

Mike Matthews


On 22 Apr 2021, at 09:55, Mike Matthews - Omnis <omnis at lineal.co.uk<mailto:omnis at lineal.co.uk><mailto:omnis at lineal.co.uk>> wrote:

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


_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list