check szJson != NULL before debugging