POST JSON

Pass json= for JSON body; headers are set automatically.

import requests
r = requests.post('https://api.example.com', json={'key': 'value'})