-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Number types don't work properly in JSON data files #5685
Comments
Nice find! It's definitely a bug. Try using |
Will do, thanks. |
Yes, we should handle this. I can guess about why this is happening:
|
You could try:
And see what that gets you. |
Yeah That works. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have a simple data file like this:
userdata.json
and in my layout I'm doing
The output is
[]
but the expected output is[map[salary:300 name:John doe] map[name:Rick foobar salary:400]]
If I have the same thing as a
yaml
fileIt does give me the expected output of
[map[salary:300 name:John doe] map[name:Rick foobar salary:400]]
I'm not quite proficient in Hugo or go html/templates, so excuse me if this issue has been posted already, but I couldn't find it with my current knowledge.
>hugo version
outputHugo Static Site Generator v0.54.0-B1A82C61 windows/amd64 BuildDate: 2019-02-01T09:42:02Z
The text was updated successfully, but these errors were encountered: