Alternative for loadstring in module json

has a json decode / encode module

I was unable to use it because in one spot it uses loadstring which is not allowed in Corona SDK (because iPhone doesn’t allow it etc)
return (base.loadstring("return " … js_string:sub(start-1, pos-1) ) ())

How could we fix the module to be Corona SDK usable?

http://json.luaforge.net/

Thanks,

  • April [import]uid: 10016 topic_id: 2997 reply_id: 302997[/import]

I have been using the following json library without any problem and without any “load*”:

http://www-users.rwth-aachen.de/David.Kolf/json-lua

-Frank.
[import]uid: 8093 topic_id: 2997 reply_id: 8711[/import]