Port the response matcher from https://github.com/jakzal/RestExtension