You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's awesome that this even works at all, but as you can see, LazyJSON.Object keys somehow get extra quotes when printed. Since compatibility is already 99% there, it would be nice if this issue could be fixed. I don't know if the problem is on your end or JSON3's end, but I will open an issue over there as well (and I'll edit this post with a link to that issue when I get it posted).
@quinnj looked into it further (as can be seen on the other issue). It seems that the issue stems from the fact that the string(s::JSON.Value) returns the original substring directly from the source.
While I think this generally sensible, the convention in Julia is that subtypes of AbstractString don't return a repr (which is what I would say your version currently does). My recommendation would be for string(x::JSON.String) to return the Julia equivalent of the JSON string, to be more in line with the rest of the ecosystem. I'll try to get a PR together, though I have no idea what I'm getting into.
Hi! Thanks for LazyJSON.jl.
It's awesome that this even works at all, but as you can see,
LazyJSON.Object
keys somehow get extra quotes when printed. Since compatibility is already 99% there, it would be nice if this issue could be fixed. I don't know if the problem is on your end or JSON3's end, but I will open an issue over there as well (and I'll edit this post with a link to that issue when I get it posted).Edit: link to the issue on JSON3.jl
The text was updated successfully, but these errors were encountered: