Closed
Description
Hello,
There looks like an issue when using the option UnorderedMap with MarshalIndentWithOption.
Mostly it will timeout for me.
But It's taking forever to Marshal Json
Example code:
var obj map[string]*json.RawMessage
data := `{\n \"b\": \"b\",\n \"a\": \"a\"}`
s, _ := strconv.Unquote(`"` + data + `"`)
json.Unmarshal([]byte(s), &obj)
fmt.Println(s)
output, _ := json.MarshalIndentWithOption(obj, "", " ", json.UnorderedMap())
fmt.Println(string(output))
Playground: https://go.dev/play/p/8ERpUAccldx
Metadata
Metadata
Assignees
Labels
No labels