diff --git a/index.html b/index.html index 8d957fb..c93df8b 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,8 @@ { for(const [key, value] of Object.entries(obj)) { - let currentPath = path === null ? key : `${path}__${key}` + let filteredKey = key.replace(':', '__') + let currentPath = path === null ? filteredKey : `${path}__${filteredKey}` console.log(currentPath) if (typeof value == "object" && value !== null) for(var v of getValues(value, currentPath))