diff --git a/ImportJSON.gs b/ImportJSON.gs index fd2a671..f47987b 100644 --- a/ImportJSON.gs +++ b/ImportJSON.gs @@ -420,7 +420,7 @@ function transformData_(data, options, transformFunc) { * Returns true if the given test value is an object; false otherwise. */ function isObject_(test) { - return Object.prototype.toString.call(test) === '[object Object]'; + return typeof test === "object" && test !== null } /**