Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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
Javascript :: javascript get device 
Javascript :: TypeError: getComputedStyle(...).getPropertyValue is not a function 
Javascript :: get minutes and seconds from seconds 
Javascript :: javascript is valid json string 
Javascript :: javascript get second last element in array 
Javascript :: vue select option get attribute 
Javascript :: javascript add new line in string 
Javascript :: sum of number using reduce 
Javascript :: append after element jquery 
Javascript :: javascript remove html element 
Javascript :: js check if date is future 
Javascript :: scroll to div jquery 
Javascript :: style before and after javascript 
Javascript :: reset form function javascript 
Javascript :: remove milliseconds from datetime js 
Javascript :: split string on multiple characters javascript 
Javascript :: how to delete a folder in node js 
Javascript :: print odd numbers in an array in javascript 
Javascript :: nodemailer custom font 
Javascript :: file extension regex javascript 
Javascript :: localstorage javascript 
Javascript :: loop key in object 
Javascript :: require("history").createBrowserHistory` instead of `require("history/createBrowserHistory")` 
Javascript :: remove the items in array which are present in another javascript 
Javascript :: s3.getobject nodejs example async await 
Javascript :: js wait command 
Javascript :: infinite loop javascript 
Javascript :: form data append jquery 
Javascript :: jquery datatable iterate all rows 
Javascript :: difference between backtick and quotes 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =