title: TypeError: 'dict' object is not callable when using request.json()
body: <p>Every time I try to get the JSON from a request via request.json() the error 'dict object is not callable' occurs. For example,</p>
  
  <pre><code>from bottle import run, request, post
  
  @post('/')
  def test():
      data = request.json()
  
  run(host='localhost',port=8080)
  </code></pre>
  
  <p>Using curl to test it, </p>
  
  <pre><code> curl -H "Content-Type: application/json" -d '{"test":"test"}' -X POST http://localhost:8080/
  </code></pre>
  
  <p>This is the output,</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\javir\AppData\Local\Programs\Python\Python38\lib\site-packages\bottle.py", line 868, in _handle 
      return route.call(**args)
    File "C:\Users\javir\AppData\Local\Programs\Python\Python38\lib\site-packages\bottle.py", line 1748, in wrapper
      rv = callback(*a, **ka)
    File "d:/Workspace Universidad/SD-P3/test.py", line 5, in test
      data = request.json()
  TypeError: 'dict' object is not callable
  127.0.0.1 - - [12/May/2020 12:43:42] "POST / HTTP/1.1" 500 741
  </code></pre>
  
  <p>I'm always having the same error no matter the content. Does anyone knows what could It be?</p>