tests,json: Add wildcard string matching
* tests/json/t-json.c (test_contains): When searching for "*" accept every string.
This allows it to write tests that check for the existence of
a string value but don't care about the contents. E.g. for Data.