diff --git a/packages/parsing/src/parse-as-json.ts b/packages/parsing/src/parse-as-json.ts index 39c25d9b..8efa1fbc 100644 --- a/packages/parsing/src/parse-as-json.ts +++ b/packages/parsing/src/parse-as-json.ts @@ -176,7 +176,7 @@ function lengthOf(item: unknown): number { const getObjectKeyFromIndex = (index: number) => `"key${index === 1 ? '' : '-' + index}":`; -const OBJECT_KEY_REGEXP = /^"[^"]+":/; +const OBJECT_KEY_REGEXP = /^\s*"[^"]+":/; type ParsedValue = string | boolean | number | GenericObject | Array;