Hi Andréas,
Thanks for the help. On Wed, Dec 27, 2017 at 1:56 AM, Andréas Kühne <andreas.kuhne@hypercode.se> wrote:
Hi,--If you want to parse json in django - or in python for that matter - all you have to do is to use the json module.import jsonobject = json.loads(insert_string_here)insert_string_here is the string that you want to parse - and object is the parsed json.Look here for more information: http://docs.python-guide.org/en/latest/ scenarios/json/ Regards,Andréas2017-12-26 18:29 GMT+01:00 tango ward <tangoward15@gmail.com>:--JarvisI want to use the OpenDOTA API for my pet project. As a beginner, I don't know where to start working on this. I have found the OpenDOTA API https://api.opendota.com/api/hI need suggestions on this.Hi,eroes which I am planning to use but I am confuse as to how to parse the json into my CBVs. I read this article https://godjango.com/blog/working-with-json-and-django/ but it doesn't show how to work with json in CBV.What I would like to achieve is to display all heroes from the OpenDOTA api link into my template.Regards,
Can anyone shed some light on where should I start?
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+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA6wQL%2BFW8 .ZGjgCxX2MKNr9e8mmR6xvsmZwSTufT eEFB54tjrA%40mail.gmail.com
For more options, visit https://groups.google.com/d/optout .
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+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCc% .3DD43bpYNUXj3NmAqk2kR_ fNnNBvTocVWTr44ioVT_mQ%40mail. gmail.com
For more options, visit https://groups.google.com/d/optout .
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA6wQLJPZmUcG28g%3Dxw%3DWODVHzT06ir1SfQRsnTWUGBV8uBgJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment