Forum Discussion

Anna24's avatar
Anna24
New Contributor
8 years ago

JSONpathcount for nodes with different name

I want to get the count of nodes in JSON response in script assertion. nodes have different names as 0,1,2.   Or else can i write a script assertion  for the occurrence of one field in JSON response....
  • Anna24's avatar
    Anna24
    8 years ago

    I had made a small typo error. It works thank you :)

     

    Instead of $[*].Number.  i used $[*].number.