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
I see! The workaround is unexpected, because all these are valid JSON values: "qwe", 123, [], {}, meaning only JSON objects (the { ... } kinds of values) are supported. This could be documented better.
I have no idea how come that ["a"] works if the JSON arrays are not supported. I just thought they were supported but the support was bugged.
Anyhow, thanks for the workaround. It is ugly to write, but if I can put it inside of a macro call (i.e. do something like array([ .. ]) to produce the { "dummy": [...] } under the hood that would be good enough). It would be better to support JSON arrays though.
Describe the bug
Works:
Broken:
To Reproduce
Create a file with the contents above, and render it.
Expected behavior
No error, array is defined and available for use (i.e. looping over).
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
No
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: