(v interface{}, options *JSON)
| 4364 | } |
| 4365 | |
| 4366 | func (ctx *Context) writeJSON(v interface{}, options *JSON) error { |
| 4367 | ctx.ContentType(ContentJSONHeaderValue) |
| 4368 | |
| 4369 | // After content type given and before everything else, try handle proto or easyjson, no matter the performance mode. |
| 4370 | if handled, _, err := ctx.handleSpecialJSONResponseValue(v, options); handled { |
| 4371 | return err |
| 4372 | } |
| 4373 | |
| 4374 | return WriteJSON(ctx, v, options) |
| 4375 | } |
| 4376 | |
| 4377 | var finishCallbackB = []byte(");") |
| 4378 |
no test coverage detected