title: How to correctly send JSON to google function?
body: <p>Here is the simple server code in python</p>
  <pre><code>def post_petition(request):
      return pprint.pformat(request.get_json())
  </code></pre>
  <p>When I test the function using the tester through google I get the correct json. However when I test it with something like this</p>
  <pre><code>$.post(&quot;https://us-central1-radiant-shard-XXXXX.cloudfunctions.net/post_petition&quot;, {&quot;name&quot;:&quot;hello&quot;}, function(data){
  alert(data);
  });
  </code></pre>
  <p>I always get None as the return. How do I get the return to correctly return the JSON input?</p>