change json type check