diff --git a/README.md b/README.md index daa2765..51537bc 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ String expected = "{\"(?!lorem.*).*\":\"valorem\"}"; String actual = "{\"ipsum\":\"valorem\"}"; JSONCompare.assertMatches(expected, actual); ``` -The assertion will pass if the actual JSON has a field which does not contain 'lorem' and points to value 'valorem'. +The assertion will pass if the actual JSON has a field which does not contain 'lorem' and which points to value 'valorem'. Check for extra JSON values or fields by using the power of `regex` and `DO NOT MATCH` use case