MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / getEscapedJSON

Function getEscapedJSON

commands/util.go:159–164  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

157}
158
159func getEscapedJSON(value string) string {
160 value = strings.Replace(value, "\\", "\\\\", -1)
161 value = strings.Replace(value, "\"", "\\\"", -1)
162
163 return value
164}
165
166func isValidJSON(value string) bool {
167 var jsonInterface interface{}

Callers 1

getFormattedJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected