JuliaIO / JSON.jl

JSON parsing and printing
Other
313 stars 101 forks source link

Fix show_json to serialize empty NamedTuple #293

Closed 0x005c closed 4 years ago

0x005c commented 5 years ago

As shown in #279, JSON.json(NamedTuple()) failed. This is because lower(NamedTuple()) fails (because nfields(NamedTuple()) is 0). So, I changed show_json(NamedTuple()) not to call lower().

fixes #279

TotalVerb commented 4 years ago

travis failure is #295, so I'm merging