We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is vaguely related to #134.
toJSON behaves badly:
toJSON
$ gomplate -i '{{ "foo:\n bar: baz\n" | yaml | toJSON }}' 2017/05/11 21:46:30 Unable to marshal object map[foo:map[bar:baz]]: json: unsupported type: map[interface {}]interface {}
However, toYAML doesn't:
toYAML
$ gomplate -i '{{ "foo:\n bar: baz\n" | yaml | toYAML }}' foo: bar: baz
I think the problem is documented in the docs for json.Marshal
json.Marshal
Map values encode as JSON objects. The map's key type must either be a string, an integer type, or implement encoding.TextMarshaler.
Obviously gpkg.in/yaml.v2 doesn't have this problem...
gpkg.in/yaml.v2
🤔
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is vaguely related to #134.
toJSON
behaves badly:However,
toYAML
doesn't:I think the problem is documented in the docs for
json.Marshal
Obviously
gpkg.in/yaml.v2
doesn't have this problem...🤔
The text was updated successfully, but these errors were encountered: