JSONtoarray and JSONimport fail in iOS
Posted: Fri Apr 13, 2018 6:59 pm
I have a stack using JSONtoarray and/or JSONimport that works on macOS 10.13.3 with LiveCode 9.0.0, but fails when deployed to an iPhone with iOS 11.2.6
Anyone have any ideas why? Here's a small stack for testing:
Code: Select all
#! This does not work for mobile.
function fGetStreetAddress pJson
-- Neither of the following two calls will work.
-- put jsonimport(tApiReturnedJson) into taApiReturnedArray
put JSONToArray(pJson) into taReturnedArray
--
put taReturnedArray["results"][1]["formatted_address"] into tReturnData
return tReturnData
end fGetStreetAddress