mergeJSON on server problem

Monte Goulding monte at appisle.net
Mon Nov 2 04:26:53 EST 2020



> On 1 Nov 2020, at 6:21 am, David Bovill via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Thanks Mark - I may give fastjson a go.
> 
> I tracked down the problem to the "\u00a0” unicode character in the json I fetched, which was causing mergeJSON to fail. This hack fixed the issue in a temporary way.
> 	replace "\u00a0” with empty in episodeJson -- hack to remove "¬"
> 
> Any thoughts on safe encoding of data I fetch fro jsonrpc calls so that it plays nicely with Livecode?

Hi David

The following seems to work without error:
put format("[ \"\\u00a0\" ]") into tJSON; get JSONToArray(tJSON); put tJSON && it[1]

Cheers

Monte


More information about the use-livecode mailing list