I need to achieve the following structure using Django restframework anyone 
help with the method or share me the video or blog links it'll be very much 
helpful for me
I want those #One and #Two to be in curly braces {} and not as square 
bracket [] , and Thanks in advance
[ { 
"id": 123,
"city": "Sidney", "
personInCity": [ #One
     {
              "id": 1, 
              "city": "Sidney", 
               "personName": "Giles",
                "dob": "2011-02-02" 
      }, 
     {
            "id": 5,
             "city": "Paulba", 
              "personName": "Sidney",
             "dob": "2016-07-16" 
      }
 ] #Two
 } ] 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9712ca5d-701f-46f6-8f52-4e191d39be62n%40googlegroups.com.

Reply via email to