CSV to JSON

CSV to JSON

Description

This action converts your CSV into an JSON format.

The delimiters of the CSV input are recognized automatically. Possible delimiters:

  • Comma ,
  • Tab
  • Space
  • Semicolon ;
  • Pipe |

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
CSVString in CSV formatThe CSV code or a file containing CSV✔️-
CSV has Headers?BooleanIndicates if the first row in the CSV contains column headers.✔️Yes
Auto-detect Field Types?BooleanWhether to automatically detect the data types of the CSV fields.✔️No
Number of Rows for Field Type DetectionNumberThe number of rows to analyze for determining field data types (if auto-detection is enabled).✔️20
Remove Empty Rows?BooleanWhether to remove rows that have no data before converting to HTML.✔️Yes
Skip a Number of RowsNumberNumber of rows to skip from the start of the CSV before processing.✔️0
Stop at a specific RowNumberRow number at which to stop reading the CSV. If not set, all rows will be processed.✔️convert all rows
SeparatorStringThe character used to separate fields in the CSV. If not set, the separator is auto-detected.✔️Auto-detect separator
Auto-detect Quote Delimiter?BooleanWhether to automatically detect the quote character used to enclose fields in the CSV.✔️Yes

Output

ResponseTypeDescription
JSONStringThe JSON response from the CSV formatted as a string

Power Automate Examples

Basic CSV with Comma , delimiter with headers

We use a simple CSV with four pets.

Simple CSV with semicolon delimiter
Pet; Identifier;First name;Last name
Dog;1000;Eats;A Lot
Cat;1001;Likes;To Scratch
Cat;1002;Furry;Kitty
Duck;1003;Dagobert;Swimmy

We have not changed the Advanced Options.

Picture

Basic CSV with Pipe | delimiter and without headers

We once again use a simple CSV with four pets.

Simple CSV with Pipe delimiter
Dog|1000|Eats|A Lot
Cat|1001|Likes|To Scratch
Cat|1002|Furry|Kitty
Duck|1003|Dagobert|Swimmy

We have directly entered the CSV into our action. We have not changed in the Advanced Options that there is no header included.

Picture

Known Limitations

⚠️
If you experienced other limitations please get in touch with us!

Column Formatting

All cells in the Excel File are automatically formatted as text columns. There will be an option inlcuded in the next version.