I have a json field which is called template.welcome.email and I am writing a unit test that checks if that field is present in the reply from the server but I can\'t find a
As Ida pointed out:
Use brackets and quotes around your field. For example, if your field is valid.key.with.dot Refer to it as ['valid.key.with.dot'] and in JsonPath, try JsonPath.read(jsonString, "$.['valid.key.with.dot']")
Use brackets and quotes around your field. For example, if your field is valid.key.with.dot
Refer to it as ['valid.key.with.dot'] and in JsonPath, try
JsonPath.read(jsonString, "$.['valid.key.with.dot']")