LC 8 and JSON

Trevor DeVore lists at mangomultimedia.com
Fri Nov 13 15:54:20 EST 2015


On Fri, Nov 13, 2015 at 2:28 PM, Devin Asay <devin_asay at byu.edu> 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
>

Devin,

It looks like you are trying to pass the filename to the JsonImport
function. Try passing in the text of field "rawJSON" instead.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com    -    www.clarify-it.com



More information about the use-livecode mailing list