Fix json date argument to be compatible on macos
hide errors when json format is used