diff Resources/Samples/Lua/CallWebService.lua @ 2947:11f8d72f366f

Lua 5.3.5
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2018 18:40:51 +0100
parents 65b1ce7cb84f
children
line wrap: on
line diff
--- a/Resources/Samples/Lua/CallWebService.lua	Thu Nov 29 17:15:29 2018 +0100
+++ b/Resources/Samples/Lua/CallWebService.lua	Thu Nov 29 18:40:51 2018 +0100
@@ -5,7 +5,9 @@
 
 -- Download and install the JSON module for Lua by Jeffrey Friedl
 -- http://regex.info/blog/lua/json
-JSON = (loadstring(HttpGet('http://regex.info/code/JSON.lua'))) ()
+
+-- NOTE : Replace "load" by "loadstring" for Lua <= 5.1
+JSON = (load(HttpGet('http://regex.info/code/JSON.lua'))) ()
 
 SetHttpCredentials('alice', 'alicePassword')