I'm learning Python and try to use it in my class project. I'm looking for a way to curl an API and return the response json. For example, the response after curling an API is JSON and how can I return it also as JSON
response = requests.get("https://github.com/timeline.json")
response = response.content
return response doesn't return it in json while return with jsonify(reponse) get this error (Object of type bytes is not JSON serializable).
Sorry for my English.