added missing JSON datatype check