Maximum Lua string length
Posted: Thursday 07 April 2016 19:50
What is the maximum Lua string length?
I ask because the string I'm getting from a curl call seems to be truncated.
Yes, I could read it line-by-line, but in this case 'alldata' is a Json result.
It's then to be decoded by JSON.lua, but fails because of the truncation.
I ask because the string I'm getting from a curl call seems to be truncated.
Code: Select all
data = assert(io.popen(curl)
alldata = data:read('*all')
data:close()
print(alldata)
decodeddata = JSON:decode(alldata)
It's then to be decoded by JSON.lua, but fails because of the truncation.