JSON library on LC Server

Devin Asay devin_asay at byu.edu
Thu Mar 9 12:47:02 EST 2017


On Mar 9, 2017, at 10:31 AM, Devin Asay via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

Can anyone tell me how/if one can use the JSON library from LC 8 on LC Server? I’m running Community Server v. 8.1.2 on a Linux server.

I tried just calling JsonExport() in the .lc script, but it errors. Do I have to ‘include’ or ‘start using’ the library somehow?

Answered my own question with another google search. Peter B. answered the question in this thread a few months back:

http://lists.runrev.com/pipermail/use-livecode/2015-November/221289.html

So here’s what I did:

Opened the LiveCode.app bundle on my Mac.

Navigated to Contents > Tools > Extensions .

Copied the com.livecode.library.json folder to the same folder on the server where my test script is.

Included this statement at the beginning of my .lc test script:

    load extension from file "com.livecode.library.json/module.lcm”

Works like a champ!

But I wonder if there’s a less fiddly way to do it. Are these LCB libraries included in the LC server installation?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University



More information about the use-livecode mailing list