(object: Record<string, any>, keys: Set<string>)
| 99 | } |
| 100 | |
| 101 | private parseObject(object: Record<string, any>, keys: Set<string>) { |
| 102 | for (const key in object) { |
| 103 | if (keys.has(key)) object[key] = JSON.parse(String(object[key])); |
| 104 | if (typeof object[key] === "object") this.parseObject(object[key], keys); |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | export { json, group, groupJSON, JSONPlugin }; |