neolithos / neolua

A Lua implementation for the Dynamic Language Runtime (DLR).
https://neolua.codeplex.com/
Apache License 2.0
466 stars 76 forks source link

ToJson still creates invalid Json when encoding +/- infinity and NaN #151

Closed thoj closed 2 years ago

thoj commented 2 years ago

NeoLua Version: 1.3.14

Example to reproduce:

local f = { v = clr.System.Double.NaN };

print (table.ToJson(f))

I never got around to testing the fix. It apparently only was fixed for Lson and not Json.

https://github.com/neolithos/neolua/commit/7232cd3ceb647922f4d7bb4e445eb1b50dab8901

Realated issue: #135