-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"for" syntax is not work with dictionary #178
Comments
Could you provide more detailed sample of the problem which I can add to C++/Python tests as-is? |
This is an example: nlohmann::json dict_item = {"AD":"376","AE":"971","AF":"93"}; |
I see a least one issue here. There is no user-callable 'items' in nlohmann::json reflection. I suppose, you need to replace What the result of this sample template processing:
|
it does not work. The result is empty! |
Ok. Thanks! I'll check it out. |
I was wondering if this was planned to be worked on? I am able to replicate the issue where looping over an dictionary instead of a list does not seem to work. |
Hi Admin,
{% for key, value in dict_item.items() %}
Key: {{key}}
Value: {{value}}
{% endfor %}
It is not working.
Thanks!
The text was updated successfully, but these errors were encountered: