fix regex to allow minified json