LC 8 and JSON
Peter Haworth
pete at lcsql.com
Fri Nov 13 14:54:04 EST 2015
Hi Devin,
I'm using jsonImport in LC8DP7 with no issues, haven't tried it in DP8 or
DP9 yet. The only difference is I use textDecode on the URL. I'm using it
to decode the LC8 dictionary file.
Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
On Fri, Nov 13, 2015 at 11:31 AM, Peter TB Brett <peter.brett at livecode.com>
wrote:
> On 13/11/2015 19:28, Devin Asay wrote:
>
>> Anyone used the JSON library with the latest LC 8 RC’s? I’m trying to do
>> some simple testing and getting an error every time.
>>
>> I have a stack with a button and a field. The button script is this:
>>
>> on mouseUp
>> answer file "Choose a JSON file:" as sheet
>> if it is empty then exit to top
>> put it into tJsonTxt
>> put url ("file:" & tJsonTxt) into fld "rawJSON"
>> put JsonImport(tJsonTxt) into tLCtext
>> put tLCText is an array # do a simple check to see what kind of
>> data’s returned
>> end mouseUp
>>
>> It always errors at put JsonImport: “execution error at line 6
>> (extension: error occurred with domain) near “runtime”, char 9”.
>>
>> The JSON file is a simple example from http://json.org/example.html .
>>
>> Do I just fundamentally not get how to use libraries in LC 8? I want to
>> make sure I’m not doing something stupid before I start filing bug reports.
>>
>
> Don't worry, you're not doing anything wrong as far as I can tell.
>
> Exactly which of the examples are you trying to import?
>
> Thanks,
>
> Peter
>
> --
> Dr Peter Brett <peter.brett at livecode.com>
> LiveCode Open Source Team
>
>
> _______________________________________________
> 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
>
More information about the use-livecode
mailing list