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
As you can see, a query on a map[string]interface{} behaves as expected, whereas nil is returned when executing the same query on a map[string]testStruct (adding a pointer to testStruct results in the same output).
Has anyone ever experienced such a problem ?
The text was updated successfully, but these errors were encountered:
I'm experiencing this same thing with a map of string to a primitive type e.g. map[string]string or map[string]int. When I use map[string]interface{}, it works fine as you stated. In the other cases, the search always returns nil.
I'm having an issue when executing a JMESPATH query on a
map[string]customType
, here's the code :As you can see, a query on a
map[string]interface{}
behaves as expected, whereasnil
is returned when executing the same query on amap[string]testStruct
(adding a pointer totestStruct
results in the same output).Has anyone ever experienced such a problem ?
The text was updated successfully, but these errors were encountered: