Skip to content

Instantly share code, notes, and snippets.

@DJWOMS
Created September 7, 2022 12:50
Show Gist options
  • Select an option

  • Save DJWOMS/d1636cdf99f0c7f4495f6c0a26c0c56d to your computer and use it in GitHub Desktop.

Select an option

Save DJWOMS/d1636cdf99f0c7f4495f6c0a26c0c56d to your computer and use it in GitHub Desktop.

Revisions

  1. DJWOMS created this gist Sep 7, 2022.
    5 changes: 5 additions & 0 deletions serializers.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    import io
    from rest_framework.parsers import JSONParser

    stream = io.BytesIO(json)
    data = JSONParser().parse(stream)