# How to Convert JSON to CSV in Excel

**Use case:** 

Convert JSON records to CSV with a chosen delimiter and headers, then open the file in Excel.

## Input

```json
{
  "target": "direct",
  "jsonInput": [
    {
      "item": "Notebook",
      "category": "Stationery",
      "price": 12.5,
      "stock": 40
    },
    {
      "item": "Pen set",
      "category": "Stationery",
      "price": 6.75,
      "stock": 120
    }
  ],
  "nestedValueMode": "flatten",
  "keySeparator": ".",
  "arrayValueMode": "cells",
  "outputFormat": "csv",
  "columnDelimiter": ",",
  "includeHeaders": true,
  "nullValue": ""
}
```

## Output

```json
{
  "rowNumber": {
    "label": "Row number",
    "format": "integer"
  },
  "values": {
    "label": "Converted values",
    "format": "object"
  }
}
```

## About this Actor

This example demonstrates how to use [JSON to CSV Converter](https://apify.com/maximedupre/json-to-csv-converter) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/json-to-csv-converter) to learn more, explore other use cases, and run it yourself.