Forum Discussion
nganapathiraju
9 years agoFormer Employee
Your expression should be
'child' in $ && 'child1' in $child
The above will return true is child1 exists in child. Its not $.child
Hope that makes sense.
jaybodra
9 years agoNew Contributor III
isn’t this expression $.child compliant with java script?
- tstack9 years agoFormer Employee
Yes, “$.child”, “$child”, and “$[‘child’]” all mean the same thing in the expression language, which is to get the value of the property named “child”. The “$” symbol refers to the input document, so “$.child” and “$[‘child’]” mean lookup “child” in the document. The “$child” syntax (i.e. no dot) is a shorthand that is accepted.