Main Content

Json load from URL, recursive display, Python 3.4

Archive - Originally posted on "The Horse's Mouth" - 2015-10-14 19:17:39 - Graham Ellis

Reading a json object from a remote URL (or it that's not available from a local file), displaying the contents of the object, modifying it, and printing it out. A Python 3.4 example from today's Python course. See [here] for full source code.

Note that in Python 2, you would have used urllib2 which replaced the earlier urllib - but the name urllib has come back in Python 3 as the new "all singing, all dancing" URL accessor.