Page 1 of 1

JSON doesn't work when app compiled

Posted: Tue Sep 28, 2021 1:28 pm
by Ultravibeman
Hello guyz!
When i using "JSONtoArray" and "ArrayToJSON" in LiveCode shell - everything works great. But when i made an EXE-file - convertation from JSON to Array failed. What it could be? Please help

Re: JSON doesn't work when app compiled

Posted: Tue Sep 28, 2021 1:43 pm
by matthiasr
I am not sure,

but maybe the Standalone builder has a problem to manually search for inclusions.

So please try the following:

1. In Standalone Application Settings ->General select Select inclusions for the standalone application. The icon Inclusions should be active now.
2 Under Inclusions select the mergJSON external.

Now try and build the standalone again.

Regards,
Matthias

Re: JSON doesn't work when app compiled

Posted: Tue Sep 28, 2021 2:15 pm
by LiveCode_Panos
Hello all,

Indeed, the auto-search for Inclusions cannot detect libraries such as mergJSON, so in this case you have to include this library manually.

Kind regards,
Panos
--

Re: JSON doesn't work when app compiled

Posted: Tue Sep 28, 2021 8:24 pm
by Ultravibeman
Thank you for your answers!

Re: JSON doesn't work when app compiled

Posted: Wed Sep 29, 2021 9:07 pm
by Ultravibeman
Next issue: manually include mergeJSON library. JSON operations are great. But GET and POST commands failed

Re: JSON doesn't work when app compiled

Posted: Fri Oct 08, 2021 10:23 am
by LiveCode_Panos
Hello,

You might need to include the Internet library as well :)

In the Inclusions, check Internet and/or tsNet.

Cheers,
Panos
--