Ton646
10 years agoOccasional Contributor
[Bug?] Autogenerated json assert on content does not work if json element has a . in the name
I think this is a fairly straightforward bug, when I right click on some json content (sample below with data redacted for privacy) and select 'assert on content' it auto generates a jsonpath assert but immediately throws an 'invalid jsonpath' error. It seems the . in the json element is throwing things off.
Here is the json child element sample (the structure is similar to data/parent/metadata/place.ctry)
"place.ctry": "Canada"
The assert being generated is:
$.data[0].parent.metadata.place.ctry
But that implies .ctry is a sub element to place, not one element.
Regards,
Ton Vlaming
Ps. This is from readyApi 1.4.1