# Download a CSV from JSON

**Use case:** 

Convert JSON records to a CSV file, choose fields, and get the complete file link.

## Input

```json
{
  "target": "direct",
  "jsonInput": [
    {
      "name": "Ada Lovelace",
      "email": "ada@example.com",
      "role": "engineer",
      "active": true
    },
    {
      "name": "Grace Hopper",
      "email": "grace@example.com",
      "role": "scientist",
      "active": true
    }
  ],
  "nestedValueMode": "flatten",
  "keySeparator": ".",
  "arrayValueMode": "cells",
  "includeFields": [
    "name",
    "email",
    "role"
  ],
  "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.