skip to Main Content

Json – How to use pd.read_excel without changing values or format

I have this data in Excel File When read with this logic, df = pd.read_excel(xls_file_path) # Convert DataFrame to JSON json_data = df.to_json(orient='records') print(json_data) [{"Name":"Deepak Kalindi","Employee ID":101,"Joining Date":1704153600000,"Leaving Date":null,"Monthly Salary":12000,"Number of full days":27,"Number of half days":2.5,"Number of leaves":1.5,"OT (full Day)":3,"OT…

VIEW QUESTION

Json – Jolt transformation with array

I have input JSON as { "eventTime" : "2024-01-17T15:10:06.858", "groupArticleNumber" : "FT6559", "groupModelNumber" : "FRX88", "productDescriptionEN" : "ESTRO 19 JSYY", "subBrand" : "1", "brand" : "11", "businessSegment" : "104", "salesLine" : "L84", "materialComposition" : [ "100% PET-REC", "100% PET-DAT" ],…

VIEW QUESTION

Facing issue while deserializing the jsonstring

I am trying to deserialize json string to datable and I am getting format error. string str = "{"Arg1":"Arg1Value","Arg2":"Arg2Value","DataArray":[{"Id": "2222","VehicleNo": "234354","Amount":"1000"},{"Id":"2226","VehicleNo":"2343","Amount":"2000"}]"}"; DataTable data = Newtonsoft.Json.JsonConvert.DeserializeObject<DataTable>(str); Error: Unexpected JSON token when reading DataTable. Expected StartArray, got StartObject. Path '', line 1,…

VIEW QUESTION

is in python a deep json parsing?

I have next code: import json string = b'{"campaign_id":6,"email":"[email protected]","time":"2024-01-26T06:05:59.852155Z","message":"Submitted Data","details":"{\"payload\":{\"__RequestVerificationToken\":[\"CfDJ8EfyW-fedawawdawdwadwadwawadawd-6xqg_ZIdEJBpbAHkDQdNM\"],\"__original_url\":[\"https://test-test-test.ru/\"],\"password\":[\"test\"],\"qwe\":[\"Gg4gTWg\"],\"username\":[\"test\"]},\"browser\":{\"address\":\"1.1.1.1\",\"user-agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0\"}}"}' a = json.loads(string) Problem is not parsing dict by key details. If you make json.loads, you will see that in key value…

VIEW QUESTION
Back To Top
Search