Skip to content

Jsonify is escaping characters #7229

@zbayoff

Description

@zbayoff

What version of Hugo are you using (hugo version)?

Hugo Static Site Generator v0.63.1-CE9ACEB7 darwin/amd64 BuildDate: 2020-01-23T20:10:12Z

Test:

{{ $testDict := dict "<any-key> " “value”}}
{{ $testDict | jsonify }}

gives:

{"\u003cany-key\u003e":“value”}

Is this a bug with jsonify or is there a hugo function I’m missing? Even a short term fix/hack would be greatly appreciated.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions