libs/web: transparently handle userdata in write_json()
This commit is contained in:
parent
8772db1675
commit
b0d3b82400
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ function write_json(x)
|
||||||
else
|
else
|
||||||
write(tostring(x))
|
write(tostring(x))
|
||||||
end
|
end
|
||||||
elseif type(x) == "string" then
|
else
|
||||||
write("%q" % tostring(x))
|
write("%q" % tostring(x))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue