[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Which JSON parser with 5.3?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 14 Apr 2017 19:18:29 -0300
> 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!)