April 2018
Beginner
226 pages
4h 47m
English
Python is a very popular scripting language that is extensively used to perform string operations and to build console applications. It can be used to fetch data from JSON API, and once the JSON data is retrieved it will be treated as JSON string. To perform any operations on that JSON string, Python provides the JSON module. The JSON module is an amalgamation of many powerful functions that we can use to parse the JSON string on hand:
import jsonstudent = [{ "studentid" : 101, "firstname" : "John", "lastname" : "Doe", ## make sure we have first letter capitalize in case of boolean "isStudent" : True, "scores" : [40, 50], "courses" ...Read now
Unlock full access