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
Describe the bug yq has trouble serializing numbers containing underscores to json.
Version of yq: 4.44.1
Operating system: mac
Installed via: homebrew
Command
The command you ran:
echo 'foo: 12_000' | yq -o=json
Actual behavior
Error: json: error calling MarshalJSON for type *yqlib.CandidateNode: json: error calling MarshalJSON for type *yqlib.CandidateNode: strconv.ParseInt: parsing "12_000": invalid syntax
Expected behavior
{
"foo": 12000
}
The text was updated successfully, but these errors were encountered:
Describe the bug
yq
has trouble serializing numbers containing underscores to json.Version of yq: 4.44.1
Operating system: mac
Installed via: homebrew
Command
The command you ran:
Actual behavior
Expected behavior
The text was updated successfully, but these errors were encountered: