x.json2 can not decode properly a struct with a fixed array field #21150
Labels
Bug
This tag is applied to issues which reports bugs.
Modules: JSON
Bugs/feature requests, that are related to `json` and `x.json2` modules.
V doctor:
What did you do?
v -g -o vdbg cmd/v && vdbg bug_fixed_array_json2.v
What did you expect to see?
the pos field should be:
pos: [0.5, 0.0, 0.5]
What did you see instead?
The equivalent program, using
json
works:producing:
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: