title: How to use captured value from URL to select JSON data in Django
body: <p>Let's assume that I have GET request with URL <code>domain/search/?value=123</code> and data in JSON:</p>
  
  <pre><code>[
  
        {
          "id": 1,
          "value": 123,
          "value2": 123123
        },
        {
          "id": 2,
          "value": 1,
          "value2": 214
        }
  
  ]
  </code></pre>
  
  <p>I would like to get data where <code>value = 123</code>. In this case:</p>
  
  <pre><code>    [
  
            {
              "id": 1,
              "value": 123,
              "value2": 123123
            }
      ]
  </code></pre>
  
  <p>I have found information how to capture parameters from URL in <a href="https://stackoverflow.com/questions/150505/capturing-url-parameters-in-request-get">this</a> post. I wonder what I should do now to find best solution in Django. Thanks in advance.</p>
  
  <p>How can I use it in views.py: </p>
  
  <pre><code>if request.method == 'GET':
          myObject = myObjectClass.objects.all()
          serializer = myObjectSerializer(myObject, many=True)
          return Response(serializer.data)
  </code></pre>
  
  <p>when data from JSON is not only an integer.</p>