public async Task Respond(HttpContext context) { var jsonSerializer = new JsonSerializer(); jsonSerializer.Configure(); var json = jsonSerializer.Serialize(_obj); var response = new RawJson(json, _contentType); await response.Respond(context); }
public DefaultJsonSerializerProvider(JsonSerializer jsonSerializer) { jsonSerializer.Configure(); _jsonSerializer = jsonSerializer; }