Page 187 - Programming With Python 3
P. 187

An Introduction to STEM Programming with Python — 2019-09-03a                              Page 174
            Chapter 17 — JSON

            Chapter 17 — JSON

             Free

            Introduction



            Intro text
             eBook
            Objectives



            Upon completion of this chapter's exercises, you should be able to:
                •   Blah de blah.
                •   Baz and Barf.
             Edition

            Prerequisites



            This Chapter requires...
            Please support this work at

            What is JSON

                                  http://syw2l.org
            JSON is an acronym for JavaScript Object Notation and is a text format for representing objects in
            JavaScript. The JSON format is actually a computer language independent way to represent and
            interchange data between systems and programs. Another advantage to JSON is that is human readable
                                                                               Free
            and editable.

            A string of JSON begins, representing an object, with a { (left-brace) and ends with a } (right brace).
            Inside these braces are zero or more name:value pairs, each separated by a  comma. Values, following a
            colon, may either be a string, number, or a list of values within square brackets.
                                                                   eBook
            {“firstnname”:”Jim”, “lastname”:”Reneau”, cars:[“MG”, “VW”, “Volvo”], “pets”, 3}



            B – JSON With Strings


                                                                Edition
            https://docs.python.org/3/library/json.html#json.dumps

            https://docs.python.org/3/library/json.html#json.loads





            Copyright 2019 — James M. Reneau Ph.D. — http://www.syw2l.org — This work is licensed
            under a Creative Commons Attribution-ShareAlike 4.0 International License.
   182   183   184   185   186   187   188   189   190   191   192