This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Description
right usage
m := make(map[string]interface{})
m["json.maxItemsComputed"] = 8000
m["C_Cpp.formatting"] = "Disabled"
m["workbench.iconTheme"] = "vscode-icons-mac"
m["C_Cpp.autocomplete"] = "Disabled"
m["editor.folding"] = map[string]interface{}{
"ssss": 123,
}
s, _ := jsoniter.MarshalIndent(m, "", " ")
fmt.Println(string(s))

wrong usage
m := make(map[string]interface{})
m["json.maxItemsComputed"] = 8000
m["C_Cpp.formatting"] = "Disabled"
m["workbench.iconTheme"] = "vscode-icons-mac"
m["C_Cpp.autocomplete"] = "Disabled"
m["editor.folding"] = map[string]interface{}{
"ssss": 123,
}
cfg := jsoniter.Config{
SortMapKeys: true,
EscapeHTML: false,
}.Froze()
s, _ := cfg.MarshalIndent(m, "", " ")
fmt.Println(string(s))
