Allow more complex contentType fields

When experimenting with the GitHub api (e.g. https://api.github.com/users/geelen) the `contentType` of the response is `application/json; charset=utf-8`. The regexp in `jsonparser` assumes `json` is the last token in that string, so this allows it to match `json;` or `json\z` (end of string).