S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which FastAPI method is used to return a custom JSON response?

  • (A) JSONify
  • (B) JSONOutput
  • (C) JSONResponse
  • (D) OutputJSON
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey
FastAPI provides `JSONResponse` to return custom JSON data with status codes and headers.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.