Re: Nested json in django rest framework

2022-06-05 Thread 'Amitesh Sahay' via Django users
PROBABLY, Pandas would help you Regards, Amitesh Sahay91-750 797 8619 On Monday, 6 June, 2022, 10:12:07 am IST, Koushik Romel wrote: Thanks for your time I've learnt something new from your message and I solved the problem yesterday itself it was my mistake I added the wrong model

Re: Nested json in django rest framework

2022-06-05 Thread Koushik Romel
Thanks for your time Kasper, I've learnt something new from your message and I solved the problem yesterday itself it was my mistake I added the wrong model to serializer On Sunday, 5 June 2022 at 23:15:47 UTC+5:30 Kasper Laudrup wrote: > On 05/06/2022 07.06, Koushik Romel wrote: > > I want

Re: Nested json in django rest framework

2022-06-05 Thread Koushik Romel
Thanks for your time I've learnt something new from your message and I solved the problem yesterday itself it was my mistake I added the wrong model to serializer On Sunday, 5 June 2022 at 23:15:47 UTC+5:30 Kasper Laudrup wrote: > On 05/06/2022 07.06, Koushik Romel wrote: > > I want those #One

Re: Nested json in django rest framework

2022-06-05 Thread 'Kasper Laudrup' via Django users
On 05/06/2022 07.06, Koushik Romel wrote: I want those #One and #Two to be in curly braces {} and not as square bracket [] , and Thanks in advance A good start would be to understand what the difference between square brackets and curly braces is. The JSON format is very simple:

Nested json in django rest framework

2022-06-04 Thread Koushik Romel
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":