Skip to content

encoding/json: show key info, when json decode error #62587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ziserendexin opened this issue Sep 12, 2023 · 2 comments
Closed

encoding/json: show key info, when json decode error #62587

ziserendexin opened this issue Sep 12, 2023 · 2 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@ziserendexin
Copy link

https://github.com/golang/go/blob/905b58b5377e8f542590a46a3c90146ab45a6c96/src/encoding/json/decode.go#L756C8-L756C8

It is very difficult to identify which key failed to parse from the JSON. I hope the error message can include information about the key.

@mvdan
Copy link
Member

mvdan commented Sep 12, 2023

Please follow the bug report template.

@mvdan mvdan added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 12, 2023
@seankhliao seankhliao changed the title show key info, when json decode error encoding/json: show key info, when json decode error Sep 12, 2023
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2023
@golang golang locked and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants