writeJSON writes the given value as a JSON response with a 200 OK status.
(value interface{})
| 1535 | |
| 1536 | // writeJSON writes the given value as a JSON response with a 200 OK status. |
| 1537 | func (h *handler) writeJSON(value interface{}) { |
| 1538 | h.writeJSONStatus(http.StatusOK, value) |
| 1539 | } |
| 1540 | |
| 1541 | // Writes an object to the response in JSON format. |
| 1542 | // If status is nonzero, the header will be written with that status. |
no test coverage detected