# Convert JSON to CSV Online

**Use case:** 

Convert JSON records to CSV online with headers and a complete file link for your data.

## Input

```json
{
  "target": "direct",
  "jsonInput": [
    {
      "id": "ORD-1001",
      "customer": "Ada Lovelace",
      "total": 42.5,
      "paid": true
    },
    {
      "id": "ORD-1002",
      "customer": "Grace Hopper",
      "total": 18,
      "paid": false
    }
  ],
  "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.