Skip to content

fix(deserialization): parse quoted strings with colons as primitives in expanded arrays - #14

Merged
alesanfra merged 1 commit into
mainfrom
agents/fix-primitive-array-colon-issue
May 14, 2026
Merged

fix(deserialization): parse quoted strings with colons as primitives in expanded arrays#14
alesanfra merged 1 commit into
mainfrom
agents/fix-primitive-array-colon-issue

Conversation

@alesanfra

Copy link
Copy Markdown
Owner

In parse_expanded_array, item_str.contains(':') was used to detect object items, which incorrectly matched quoted strings like "a:b". Replace with find_key_value_colon() which skips colons inside quotes, matching the disambiguation rule in spec §9.3.

Related Issues

Fixes #13

…in expanded arrays

In parse_expanded_array, item_str.contains(':') was used to detect
object items, which incorrectly matched quoted strings like "a:b".
Replace with find_key_value_colon() which skips colons inside quotes,
matching the disambiguation rule in spec §9.3.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@alesanfra
alesanfra merged commit 39b9908 into main May 14, 2026
17 checks passed
@alesanfra
alesanfra deleted the agents/fix-primitive-array-colon-issue branch May 21, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decoder corrupts quoted strings with colons in expanded primitive arrays

1 participant