Zulip Chat Archive

Stream: new members

Topic: empty object as null in json parser


kana (Feb 19 2021 at 13:30):

I think I found simple bug in core lib json parser

#eval json.parse "{}" -- some null
#eval json.unparse (json.object []) -- "null"

Eric Wieser (Feb 19 2021 at 13:37):

Bumping the version of the C++ json library might help - it's currently 4 years out of date

Eric Wieser (Feb 19 2021 at 13:37):

https://github.com/nlohmann/json/releases/tag/v2.0.8

Eric Wieser (Feb 19 2021 at 14:09):

https://github.com/leanprover-community/lean/pull/534 fixes the second one I think

Eric Wieser (Feb 19 2021 at 14:18):

Created a new thread in #general to discuss this here

Eric Wieser (Feb 19 2021 at 17:58):

Eric Wieser said:

https://github.com/leanprover-community/lean/pull/534 fixes the second one both I think

now merged, will be in the next lean release.


Last updated: Dec 20 2023 at 11:08 UTC