Practice: Flask Fundamentals

« Read the chapter

Q21. Choosing JSON or HTML

IntermediateApplication

A mobile app needs product data from your Flask site. Should the route return HTML or JSON, and why?

Goal: Pick the right response type.