title: Parsing JSON incoming to a Webhook
body: <p>I'm trying to build a webhook that receives JSON being <code>POST</code>ed from a third party service, Messagebird. In their documentation they have an example of an outgoing query:</p>
  
  <pre><code>GET http://your-own.url/script
      ?id=e8077d803532c0b5937c639b60216938
      &amp;recipient=31642500190
      &amp;originator=31612345678
      &amp;body=This+is+an+incoming+message
      &amp;createdDatetime=2016-05-03T14:26:57+00:00
  </code></pre>
  
  <p>My webhook is being built with Python in Django, and this is what I have in my views.py:</p>
  
  <pre><code>from django.shortcuts import render
  from django.views.decorators.http import require_POST
  from django.http import HttpResponse
  from .models import UserText
  
  @require_POST
  def webhookmb(request):
      usrtxt = json.loads(request.body.decode("utf-8"))
  
      UserText.objects.create(
          id = usrtxt['id']
          recipient = usrtxt['recipient']
          originator = usrtxt['originator']
          body = usrtxt['body']
          createdDatetime = usrtxt['createdDatetime']
      )
  
      return HttpResponse(200)
  </code></pre>
  
  <p>My goal is to read the JSON into a file <code>usrtxt</code> and then map those fields to a model. I'm getting this error (deployed on heroku):</p>
  
  <blockquote>
    <p>JSONDecodeError: Expecting value: line 1 column 1 (char 0) </p>
  </blockquote>
  
  <p>Is this because <code>json.loads</code> is trying to read the file and the first like starts with <code>GET</code>? Do I need to skip this line? Or is there another way to go about this?</p>