read multiple document in create function of viewset

8 views
Skip to first unread message

Amit Agarwal

unread,
Nov 7, 2019, 6:31:10 AM11/7/19
to django...@googlegroups.com
I am passing a more than one JSON document in post request, in create method of viewset, when I validate it, it raises an error "

"detail": "JSON parse error - Extra data: line 5 column 6 (char 74)"
How can i handle it?

Parth Joshi

unread,
Nov 7, 2019, 7:33:22 AM11/7/19
to django...@googlegroups.com
Can you paste in the code snippet ? 

On 07-Nov-2019, at 5:00 PM, Amit Agarwal <amit...@gmail.com> wrote:


I am passing a more than one JSON document in post request, in create method of viewset, when I validate it, it raises an error "

"detail": "JSON parse error - Extra data: line 5 column 6 (char 74)"
How can i handle it?

--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEHyEsoFyELjey0yGQp_qJp6sZEZJ5C2ppWFTbUbngNftsVxGw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages