![]() ![]() ![]() The key to extracting data from a JSON object is recognizing the mix of data structures used to store the data. The initial data structure may be a list but then change to a dictionary as the data is extracted. Data structures change the deeper the data is nested in the JSON structure and knowing those distinctions are important. When it comes to extracting nested data the details matter. If it seems like I’m making a big deal about the terminology, it is because I am. “It has long been an axiom of mine that the little things are infinitely the most important.” - Sir Arthur Conan Doyle, When extracting Nested Data the question(s) should be: Is the data nested in a Dictionary or List data structure? What is the combination of data structures used? Is the first data structure used a dictionary or a list? In practice, the starting point for the extraction of nested data starts with either a dictionary or list data structure. In Python Programming, key-value pairs are dictionary objects and ordered list are list objects. The technical documentation says a JSON object is built on two structures: a list of key-value pairs and an ordered list of values. JSON: List and Dictionary Structure, Image by Author. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |