update checkType function to handle types not covered by the conditionals.
update checkType function to handle types not covered by the conditionals.

I got an {"error":"Cannot read property 'item' of undefined"} when handing over json with properties like { my_key: null}
Cnova/jsonexport,kauegimenes/jsonexport