lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I used to like lua-cjson but it does not sit well with Lua 5.3.
> Whenever a string could represent a number, it converts
> it to a float, so that every integer prints with a .0 at the end.

The version at https://github.com/mpx/lua-cjson does not seem to have this:

	local json = require "cjson"
	print(json.encode{1, 2.0, 3})

prints
	[1,2,3]

(but I expected 2.0 here!)