The mergJSON external is already included in LCServer - mergJSONEncode
and mergJSONDecode work fine; it's just the convenience functions
(arrayToJSON and JSONToArray) which are missing. They are very short,
and can be found in the dictionary entries for those main functions, and
then simply cop
ArrayToJSON is from the mergJSON external... so in order for you to use it,
you would need to be able to access the external through your server
installation. I don't know if that is possible...
My recommendation would be to use a library such as fastJSON. I use fastJSON
with LC Server all the tim
Alex,
My recollection is that for functions in libraries, like this one, you have to
find the library stack in the IDE installation and copy it to your server then
‘start using’ it, in the case of a stack, or ‘include’ it in the case of a .lc
script. (The former is what I’ve done, I believe.) I
It looks as though arrayToJSON() isn't included in LCServer (*).
That can't be right - can it ?
Must be something I need to do - but what ?
(*) The dictionary for the array <-> JSON functions don't mention OS or
Platforms.
My simple test script could be much simpler ...
file "/home/ua886