MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / readJSONInto

Method readJSONInto

rest/handler.go:1328–1330  ·  view source on GitHub ↗

Parses a JSON request body into a custom structure.

(into interface{})

Source from the content-addressed store, hash-verified

1326
1327// Parses a JSON request body into a custom structure.
1328func (h *handler) readJSONInto(into interface{}) error {
1329 return ReadJSONFromMIME(h.rq.Header, h.requestBody, into)
1330}
1331
1332// readSanitizeJSONInto reads and sanitizes a JSON request body and returns DatabaseConfig.
1333// Expands environment variables (if any) referenced in the config.

Callers 12

handleSyncFnDryRunMethod · 0.95
handlePostIndexInitMethod · 0.95
handleFacebookPOSTMethod · 0.95
handleRevsDiffMethod · 0.95
readJSONMethod · 0.95
createUserSessionMethod · 0.95
handlePutDesignDocMethod · 0.95
handleGooglePOSTMethod · 0.95

Calls 1

ReadJSONFromMIMEFunction · 0.85

Tested by

no test coverage detected