Do not use regular expression to check JSON in Mibew API.

It leads to problems with big packages because of limitation on
max backtrack count (see pcre.backtrack_limit for details).