title: How to convert to a full JSON
body: <p>How to convert to JSON type format. 
  Instead of the object ID you need to get full information about it.
  From such</p>
  
  <pre><code>[
    {
      "title": "scenario factory - sump",
      "scenario_pipeline": [
        {
          "pipeline": 11
        }
      ],
     "scenario_exist": [
        {
          "factory": 43
        },
        {
          "factory": 44
        }
      ]
    }
  ]
  </code></pre>
  
  <p>To such a</p>
  
  <pre><code>[
    {
      "title": "scenario factory - sump",
      "scenario_pipeline": [
        {
          "title": "factory - sump",
          "percent": 11,
          "start_point": [
            57.332892983304895,
            36.40013349999995
          ],
          "end_point": [
            51.829824506973154,
            43.43138349999996
          ],
          "point": []
        }
      ],
     "scenario_exist": [
        {
          "id": 43,
          "title": "factory",
          "choice": "Factory",
          "address": [
            57.332892983304895,
            36.40013349999995
          ]
        },
        {
          "id": 44,
          "title": "sump",
          "choice": "Sump",
          "address": [
            51.829824506973154,
            43.43138349999996
          ]
        }
      ]
    }
  ]
  </code></pre>
  
  <p>My models.py 
  The basic model of Scenario, the two remaining inline</p>
  
  <pre><code>class Scenario(models.Model):
      title = models.CharField(max_length=200)
  
  class ScenarioExist(models.Model):
      scenario = models.ForeignKey('Scenario', related_name='scenario_exist', on_delete=models.CASCADE)
      factory = models.ForeignKey('factory.Factory', related_name='factory', on_delete=models.CASCADE)
  
  class PipelineTwo(models.Model):
      scenario = models.ForeignKey('Scenario', related_name='scenario_pipeline', on_delete=models.CASCADE)
      pipeline = models.ForeignKey('pipeline.Pipeline', null = True, on_delete=models.CASCADE, related_name = 'point_two')
  </code></pre>
  
  <p>If you want to show the models to which the fields are accessed, I will show.</p>
  
  <p>My serializes.py</p>
  
  <pre><code>class PipelineTwoSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = PipelineTwo
          fields = ['pipeline']
  
  class ScenarioExistSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = ScenarioExist
          fields = ['factory']
  
  class ScenarioSerializer(serializers.ModelSerializer):
      scenario_pipeline = PipelineTwoSerializer(many=True)
      scenario_exist = ScenarioExistSerializer(many=True)
  
      class Meta:
          model = Scenario
          fields = ['title', 'scenario_pipeline', 'scenario_exist']
  </code></pre>