-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
» echo "{"field1":"email\SECMASKED"}" | jq 5
jq: parse error: Invalid numeric literal at line 1, column 9but 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")
}Metadata
Metadata
Assignees
Labels
No labels