Hello,
I saw that this library is using JSON2 instead of the standard JSON library. This library hasn't seen updates in the last 9 months (in fact, the author seems to have moved into doing JSON3 and it doesn't seem to respect the JSON standard.
Here there are a couple examples of JSON2 failing at a roundtrip:
# Float
JSON.parse(JSON.json(2.0)) # Float -> Float
JSON2.read(JSON2.write(2.0)) # Float -> Int
# Dict
JSON.parse(JSON.json(Dict("abc" => 1))) # Dict -> Dict
JSON2.read(JSON2.write(Dict("abc" => 1))) # Dict -> NamedTuple
Is there any JSON2 specific behaviour that you are relying on? Would you accept a pull request changing the library?
Thank you in advance.
PS: This behaviour is also maintained in JSON3.
Hello,
I saw that this library is using JSON2 instead of the standard JSON library. This library hasn't seen updates in the last 9 months (in fact, the author seems to have moved into doing JSON3 and it doesn't seem to respect the JSON standard.
Here there are a couple examples of
JSON2failing at a roundtrip:Is there any
JSON2specific behaviour that you are relying on? Would you accept a pull request changing the library?Thank you in advance.
PS: This behaviour is also maintained in
JSON3.