MCPcopy
hub / github.com/caddyserver/caddy / JSON

Method JSON

caddyconfig/httpcaddyfile/directives.go:242–244  ·  view source on GitHub ↗

JSON converts val into JSON. Any errors are added to warnings.

(val any)

Source from the content-addressed store, hash-verified

240
241// JSON converts val into JSON. Any errors are added to warnings.
242func (h Helper) JSON(val any) json.RawMessage {
243 return caddyconfig.JSON(val, h.warnings)
244}
245
246// MatcherToken assumes the next argument token is (possibly) a matcher,
247// and if so, returns the matcher set along with a true value. If the next

Callers 5

parseCaddyfileHandlePathFunction · 0.80
parseCaddyfileFunction · 0.80
parsePHPFastCGIFunction · 0.80
parseTryFilesFunction · 0.80
parseHandleErrorsFunction · 0.80

Calls 1

JSONFunction · 0.92

Tested by

no test coverage detected