Open aplavin opened 2 years ago
Yeah, good catch. Part of the issue is that copy
isn't defined by default for immutables in Base. I think there's been some discussion on defining that though recently. In the mean time, I'd be fine defining a JSON3.materialize
function that does what you're after. It'd be a pretty simple definition, if you'd like to put up a PR!
It would be useful to provide a generic function, let's call it
materialize
for now, that always makes a plain Julia type from the result ofJSON3.read
. Currently,copy
is close to being that function, but not quite: