quinnj / JSON3.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Converting `JSON3.Object` and `JSON3.Array` to `Dict` and `Vector`, respectively

DilumAluthge opened this issue · comments

Suppose that I have a JSON3.Object or a JSON3.Array. I'd like to now to convert it to a Base Dict or a Base Vector, respectively.

And I'd like to do so recursively. E.g. if the JSON3.Object or JSON3.Array contains other JSON3.Objects and/or JSON3.Arrays, I'd like to also convert all of those to Dicts and Vectors, respectively.

What is the easiest way to do this?

Just call copy(x); it should also work recursively. (sorry for the slow response!)

That works perfectly! Should we add this to the documentation somewhere?