class_docstr: JSON response using the high-performance ujson library to serialize data to JSON.
  
  Read more about it in the
  [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
class_docstr_tok: ["JSON","response","using","the","high-performance","ujson","library","to","serialize","data","to","JSON",".","Read","more","about","it","in","the","[","FastAPI","docs","for","Custom","Response","-","HTML",",","Stream",",","File",",","others","]","(","https",":","\/\/fastapi.tiangolo.com\/advanced\/custom-response\/",")","."]
code: def render(self, content: Any) -> bytes:
      assert (
          ujson is not None
      ), "ujson must be installed to use UJSONResponse"
      return ujson.dumps(content, ensure_ascii=False).encode("utf-8")
  
file_path: fastapi/fastapi/responses.py
imports: from typing import Any
  from starlette.responses import FileResponse
  from starlette.responses import HTMLResponse
  from starlette.responses import JSONResponse
  from starlette.responses import PlainTextResponse
  from starlette.responses import RedirectResponse
  from starlette.responses import Response
  from starlette.responses import StreamingResponse
label_desc: Use image node_id 1 for calling the UJSONResponse obj's underlying member method code with example usage: obj.render(content) and returns: ujson