Python Forum
Looking for csv to json convertion script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for csv to json convertion script
#1
Hi,

I am looking for script which will convert input into JSON in below format

{"logtime": "Jun 28 00:00:28", "AvgCPU": "90"}
{"logtime": "Jun 28 00:10:28", "AvgCPU": "80"}


I went through couple of the readily available scripts but in all of them all entries are merged in single line.

Thanks
Rajan
Reply
#2
Dos you csv file look like this?
Output:
logtime,Jun 28 00:00:28,AvgCPU:90 logtime,Jun 28 00:10:28,AvgCPU:80
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Script to convert Json to CSV file chvsnarayana 8 2,540 Apr-26-2023, 10:31 PM
Last Post: DeaD_EyE
  hex to int convertion ebolisa 2 1,605 Jul-06-2020, 08:18 PM
Last Post: ebolisa
  [split] script: remove all "carriage return" from my json variable pete 2 2,811 May-05-2020, 03:22 PM
Last Post: deanhystad
  Regex to retrieve data from json in script tag. DreamingInsanity 4 9,601 Dec-20-2019, 06:18 PM
Last Post: DreamingInsanity
  Partial convertion string to int in lists satellite89 6 3,437 Apr-22-2019, 08:50 PM
Last Post: Yoriz
  script: remove all "carriage return" from my json variable mfran2002 4 11,227 Feb-20-2019, 05:07 AM
Last Post: mfran2002
  Issue with a script to convert xls to json Will86 2 3,832 Dec-19-2018, 08:23 AM
Last Post: Will86
  json with regex script snagging mepyyeti 6 4,844 Feb-03-2018, 12:56 AM
Last Post: mepyyeti

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020