MCPcopy
hub / github.com/thinkjs/thinkjs / json

Function json

lib/extend/context.js:95–99  ·  view source on GitHub ↗

* send json data

(data)

Source from the content-addressed store, hash-verified

93 * send json data
94 */
95 json(data) {
96 this.type = this.config('jsonContentType');
97 this.body = data;
98 return false;
99 },
100 /**
101 * send success data
102 */

Callers

nothing calls this directly

Calls 1

configMethod · 0.80

Tested by

no test coverage detected