Improve validation of content type in json-body

Custom MIME types should end with +json.
Characters following json MIME type should be optional.

Currently, the prerequisite will fail with a content-type of "application/json" because it expects there to be at least one more character (presumably "; charset=utf-8")