Correct a bug while trying to create a CookieJar from a json