Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

convert csv to json powershell

cd into the directory with the csv file you want to convert to JSON

$topicsjson = import-csv .	he_csv_file.csv | ConvertTo-Json
$topicsjson | Add-Content -Path "output_file_name.json"
Comment

convert csv to json powershell code

Get-Content -path source.csv | ConvertFrom-Csv -Delimiter ',' | ConvertTo-Json | Out-File output.json  
Comment

PREVIOUS NEXT
Code Example
Shell :: add an existing user account to a group 
Shell :: print first lines of file linux 
Shell :: git commit ignore eslint 
Shell :: rename branch git 
Shell :: installing zsh oh my zsh wsl 
Shell :: clear ram cache linux 
Shell :: snap install chrome 
Shell :: wsl install cmake 
Shell :: how to install aplay in ubuntu 
Shell :: connect ps4 controller to pc linux 
Shell :: vscode disable powershell integrated console 
Shell :: adb find device ip 
Shell :: get branch from origin 
Shell :: Keep CMD open after BAT file executes 
Shell :: getting started with vite 
Shell :: sqlmap enumerate databases 
Shell :: remove remote git 
Shell :: shell script remove file if exists 
Shell :: linux see drivers 
Shell :: link php with php 8 mac 
Shell :: allow localhose wsl2 
Shell :: rm recursive file pattern 
Shell :: Port 3000 is already in use, but when I try to kill nothing is found 
Shell :: split big file into smaller parts 
Shell :: drop cache ubuntu 
Shell :: ! [rejected] main - main 
Shell :: using github personal github token when cloning a repo 
Shell :: git diff only file names 
Shell :: how to install pgadmin4 ubuntu 
Shell :: bash count duplicate lines in a file 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =