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
and expression $[type='command']. It returns the first object properly. However, I want to use the singleton operator to have easier handling: $[][type='command'] does not return an array of matches and $[type='command'][] does neither.
How can I always return an array of results in my case?
The text was updated successfully, but these errors were encountered:
DaelDe
changed the title
Singleton array has no effect on an array of objects
Singleton operator has no effect on an array of objects
Jun 14, 2018
Consider the following input:
and expression
$[type='command']
. It returns the first object properly. However, I want to use the singleton operator to have easier handling:$[][type='command']
does not return an array of matches and$[type='command'][]
does neither.How can I always return an array of results in my case?
The text was updated successfully, but these errors were encountered: