Category : recursion

I’m trying to parse a nested JSON in order to insert values into SQL table where the keys would be column names. Here’s a sample of my data: json = {‘inquiry_date’: ‘2021-01-14’, ‘address’: {‘city’: ‘Warsaw’, ‘zip_code’: ’20-200′, ‘country’: ‘Poland’, ‘house_no’: ’22’, ‘street’: ‘Some-Street’}, ‘insert_date’: ‘2020-12-20’, ‘is_active’: False} and here’s parsing function: def parse_json(json): for k, ..

Read more