Skip to content

Conversation

@andrewkroh
Copy link
Member

Fixes JSON marshaling failure when encoding lists containing
map[ref.Val]ref.Val types. The error "json: unsupported type:
map[ref.Val]ref.Val" occurred when calling encode_json() on
expressions like [0, 1].map(i, {"a":i}).encode_json().

The fix extends the protobuf conversion case to handle both
map[ref.Val]ref.Val (existing) and []ref.Val (new) types.

Fixes JSON marshaling failure when encoding lists containing
map[ref.Val]ref.Val types. The error "json: unsupported type:
map[ref.Val]ref.Val" occurred when calling encode_json() on
expressions like [0, 1].map(i, {"a":i}).encode_json().

The fix extends the protobuf conversion case to handle both
map[ref.Val]ref.Val (existing) and []ref.Val (new) types.
@andrewkroh andrewkroh requested a review from a team September 15, 2025 00:24
Copy link
Collaborator

@efd6 efd6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@andrewkroh andrewkroh merged commit 835128b into elastic:dev Sep 16, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants