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
» echo "{"field1":"email\SECMASKED"}" | jq 5 jq: parse error: Invalid numeric literal at line 1, column 9
but check is passed
func TestDecodeSpecialChar(t *testing.T) { json := `{"field1": "email\SECMASKED"}` root, err := DecodeString(json) defer Release(root) assert.NoError(t, err, "error while decoding") assert.NotNil(t, root, "node shouldn't be nil") assert.True(t, root.IsObject(), "wrong first node") }
The text was updated successfully, but these errors were encountered:
u just unescaped \ in ur bash scripts, but in go u have used tick notation for strings, so encapsulation is not required
\
~ echo -E '{"field1":"email\\SECMASKED"}' | jq { "field1": "email\\SECMASKED" }
Sorry, something went wrong.
@ythosa the ploblem is that the invalid json {"field1":"email\SECMASKED"} is valid for insane-json
{"field1":"email\SECMASKED"}
the problem is the encapsulation of "". JSON is valid...
No branches or pull requests
but check is passed
The text was updated successfully, but these errors were encountered: