Created
September 7, 2022 10:58
-
-
Save DJWOMS/68d908c74fab6e2500d7a8499c878341 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rest_framework.renderers import JSONRenderer | |
json = JSONRenderer().render(serializer.data) | |
print(json) | |
# '{"email": "leila@example.com", "content": "foo bar", "created": "2012-08-22T16:20:09.822"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment