dewski/json_builder

Decimal numbers dissapear

dbackeus opened this issue · 2 comments

json = JSONBuilder::Generator.new
json.float = 1.3
json.compile! # "{\"float=\": }"

+1, same here

The issue here is you are using json.float = 1.3 as a setter, if you remove the = you would get expected results. The new API in 3.0 should help as well.