Forum Discussion

TwoFang's avatar
TwoFang
Contributor
8 years ago

When did you change the JSON Path Expression format for 'add assertion for content' and why

from this syntax:
$.teachers[0].hours
to this syntax:
$['teachers'][0]['hours']

Regards

/N

1 Reply

  • Both syntaxes are accepted. We changed the way it was generated to the latter in order to deal with the case of keys starting with a dot. (For example $['teachers'][0]['.hours']) The change was done in 1.9.0.