MCPcopy
hub / github.com/docker/compose / ToStandardJSON

Function ToStandardJSON

cmd/formatter/json.go:27–29  ·  view source on GitHub ↗

ToStandardJSON return a string with the JSON representation of the interface{}

(i any)

Source from the content-addressed store, hash-verified

25
26// ToStandardJSON return a string with the JSON representation of the interface{}
27func ToStandardJSON(i any) (string, error) {
28 return ToJSON(i, "", standardIndentation)
29}
30
31// ToJSON return a string with the JSON representation of the interface{}
32func ToJSON(i any, prefix string, indentation string) (string, error) {

Callers 1

PrintFunction · 0.85

Calls 1

ToJSONFunction · 0.85

Tested by

no test coverage detected