Added object type check to json parameter.