[Answered ]-How do I open this JSON data with Python?

2👍

In Django, the HTTP request body can be accessed as a string using the body attribute of the request object which can then be decoded using json.loads

eg.

import json

def myview(request):
    if request.method == 'POST':
        phone_numbers = json.loads(request.body)
        for phone_number in phone_numbers:
            # do something here

Leave a comment