LC 8 and JSON

Devin Asay devin_asay at
Fri Nov 13 14:28:38 EST 2015

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 .

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.


Devin Asay
Office of Digital Humanities
Brigham Young University

More information about the use-livecode mailing list