I use a tool called hjson hjson/hjson-go: Hjson for Go (github.com) <https://github.com/hjson/hjson-go> This not only lets you put comments into the code but many times can be used to fix json. Some of my tools the user has to generate a JSON payload then send it with my tool. I will take their json and run it through hjson first. It doesn't catch everything, but it has fixed quite a few json files that had little things like a missing comma.
On Monday, February 6, 2023 at 6:22:29 PM UTC-5 dave wrote: > I'm getting the error > > panic: json: cannot unmarshal string into Go value of type > map[string]*json.RawMessage but it does not tell me which line or section > of my json is causing the issue. How can I see this? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/1366d8f7-a9d0-4c78-996f-9dae73e240abn%40googlegroups.com.