JSON export by notation?

Mike Matthews - Omnis omnis at lineal.co.uk
Fri Nov 24 09:29:29 UTC 2023

This works just fine.

Do $root.$exportjson(rLib, cOutPath, lErrorList, lWarningList) Returns lvFlagOk

And from the v11 docs, v10 not here anymore I think:

$root.$exportjson(rLib, cOutPath [,&lErrList, &lWarningList])
exports a JSON tree for the library and returns kTrue for success, or kFalse for failure. Parameters:

rLib is an item reference to the library to export.

cOutPath is the pathname of the directory into which $exportjson will generate the JSON for the library, or the pathname of a directory which already contains a previous JSON representation of library, and which $exportjson will update to reflect the current contents of the library.

lErrorList and lWarningList are lists that receive errors and warnings about the export process. $exportjson defines these lists, so there is no need to define or clear the parameters before calling $exportjson.

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>



On 23 Nov 2023, at 21:41, Kelly Burgess <kellyb at montana.com<mailto:kellyb at montana.com>> wrote:

Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.

Stefan wrote:
The $exportjson method can be used to export a library to a JSON tree.

Does anyone know where to find that via the notation inspector?  I don't see it in the $root methods.  I wanted to find it in Studio 11 so I'd know where to look to see if Studio 10 includes the same methods...

Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,qdP1bMpuH20CmVTdqrjk8ZL622wSGnYeLwkG02jJZjWyKin1huo6EW0t3zSt4HyKqupdQ3HGC1NBZ1owN5r08afzpdw029cYIAplId1Mn2YTHe3nvA,,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

More information about the omnisdev-en mailing list