title: "JSON parse error - Expecting property name enclosed in double quotes: line 1 column 2 (char 1)"
body: <p>I am creating a project with Django Rest Framework and I ran into some problems and im not able to fix them.</p>
  <p>So, I have a URL for post method and when I post there using postman, I get an error:</p>
  <pre><code>    {
    &quot;detail&quot;: &quot;JSON parse error - Expecting property name enclosed in double quotes: line 1 column 2 (char 1)&quot;
  }
  </code></pre>
  <p>This is the data im sending:</p>
  <pre><code>{username:&quot;REQUAB&quot;, password:&quot;REQUAB&quot;, emailId:&quot;requab@gmail.com&quot;}
  </code></pre>
  <p>And just to check if i had some problem in the serializer or the model, i did a normal get request and i got correct output.</p>
  <p>my models.py:</p>
  <pre><code>from django.db import models
  
  # Create your models here.
  
  class User(models.Model):
      emailId = models.EmailField(max_length=50)
      username = models.CharField(max_length=20)
      password = models.CharField(max_length=50)
      recipes = models.IntegerField(default=0)
  
      def __str__(self):
          return self.username
  </code></pre>
  <p>my serializers.py:</p>
  <pre><code>from rest_framework import serializers
  from .models import User
  
  class UserSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ['id', 'username', 'emailId', 'password', 'recipes']
  </code></pre>
  <p>my urls.py:</p>
  <pre><code>from django.urls import path
  
  from .views import UsersList, UsersDetail
  
  urlpatterns = [
      path('', UsersList.as_view()),
  ]
  </code></pre>
  <p>my views.py:</p>
  <pre><code>from django.http import Http404
  from rest_framework.views import APIView
  from rest_framework.response import Response
  from rest_framework import status
  from users.models import User
  from .serializers import UserSerializer
  
  # Create your views here.
  
  class UsersList(APIView):
      def get(self, request, format=None):
          users = User.objects.all()
          serializer = UserSerializer(users, many=True)
          return Response(serializer.data, status=status.HTTP_200_OK)
      
  
      def post(self, request):
          print(request.data)
          serializer = UserSerializer(data=request.data)
          if serializer.is_valid():
              serializer.save()
              return Response(serializer.data, status=status.HTTP_201_CREATED)
          return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
  </code></pre>
  <p>Pls help me with this (Thanks, in advance).</p>