arrayToJSON on lc server
Mike Kerner
MikeKerner at roadrunner.com
Mon Oct 16 22:49:15 EDT 2023
the externalfunctions doesn't seem to be returning anything for a project i
just opened (never tested it, before). that project has a lot of
standalone inclusions, some of which have external functions, so i don't
know if it means externals that are directly attached to the stack (like
old xcmd's/xfcn's).
grasping at straws, because i'm not deploying to lc server on linux
* i assume you manually included mergjson in your standalone (assuming
you're building your project). if not, try that.
* have you tried embedding the source from the
mergJSONLibrary.livecodescript into your main stack and then stepping
through the code? it's available in the oss repo or any of the forks of
that repo. that's just the library, not the mergjsonencode external, but it
might get you closer.
* if that doesn't work, there are at least two other oss lc json codebases,
the most popular being mark smith's, which, i think, is what monte used
when he wrote mergjson.
On Mon, Oct 16, 2023 at 7:21 PM Neville Smythe via use-livecode <
use-livecode at lists.runrev.com> wrote:
> I am having a problem with the function arrayToJSON on LC Server 9.6.10
> pro (Linux host) (I couldn't get it to work on earlier versions either)
>
> I get the error
>
> Function: error in function handler (arrayToJSON)
> The mergJSON.so file is in the Externals folder, which resides in the same
> directory as livecode-server. Since revdb calls work, which I assume use
> the revdb.so library, evidently Externals are loading, and permissions for
> mergJSON.so are the same as for revdb.so.
>
> This is supposed to work out of the box, so I must be missing something
> obvious.
>
> BTW, the call "the externalFunctions of this stack" return empty - is that
> correct, should it not return the functions available in the Externals .so
> libraries?
>
> Neville Smythe
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
More information about the use-livecode
mailing list