Log before json parsing