skip to Main Content

convert nested Json to multiple Csv files

I have a json pull using api and below is what the file looks like: [ { "id": 181, "emp_number": "527", "clock_id": "124", "organization_trackings": [ { "title": "Division", "value": "200", "value_description": "Cons" }, { "title": "Location", "value": "951", "value_description": "Jasp"…

VIEW QUESTION

Unable to Parse the JSON format data in python

The data that is being acquired by this code, is not being formatted into proper csv format. import requests import csv def Download_data(): s = requests.Session() headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66…

VIEW QUESTION

How to change an unnormalized csv file to a complex json or java object

I have the following unnormalized csv file user_id,nickname,joinDate,product_id,price 1,kmh,2023-07-24,P131,3000 1,kmh,2023-07-24,P132,4000 1,kmh,2023-07-24,P133,7000 1,kmh,2023-07-24,P134,9000 2,john,2023-07-24,P135,2500 2,john,2023-07-24,P136,6000 3,alice,2023-07-25,P137,4500 3,alice,2023-07-25,P138,8000 I'm going to change this to the following json format (or java object). [ { "user_id": 1, "nickname": "kmh", "joinDate": "2023-07-24", "orders": [ {…

VIEW QUESTION
Back To Top
Search