Skip to content

Conversation

@Zinoex
Copy link

@Zinoex Zinoex commented Dec 3, 2025

For context, I am trying to load a Array{Vector{Int64}, 4} using JSON.jl, which relies on StructUtils.jl. The inner vector is jagged, i.e. not the same length for every element, so Array{Int64, 5} is not an option. Now, without this stop condition, the multidimensional array continues until f.cur_dim[] == 0 and fails to set the dimension, unsurprisingly. With this condition it works flawlessly.

Full disclaimer, I don't know if this will have a major impact elsewhere, so please review this PR carefully. But it would be nice if loading vectors in multi-dim arrays worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant