albertodemichelis / squirrel

Official repository for the programming language Squirrel
http://www.squirrel-lang.org
MIT License
926 stars 161 forks source link

local table = dofile("file.json") possible? #272

Closed oomek closed 1 year ago

oomek commented 1 year ago

Is there an easy way of directly loading a pure JSON file like the ones that are generated by Github API? When I use dofile() Squirrel requires that the file file starts with return keyword.

albertodemichelis commented 1 year ago

No Sorry :)

oomek commented 1 year ago

Oh well, nevermind then, I'll stick to manually parsing the file then. Thanks for answering.