# Online JSON to CSV Converter

**Use case:** 

Convert nested JSON to CSV online with flattened columns, headers, and a complete file link.

## Input

```json
{
  "target": "direct",
  "jsonInput": [
    {
      "product": {
        "sku": "NB-001",
        "name": "A5 notebook"
      },
      "inventory": {
        "count": 12,
        "warehouse": "LON"
      }
    },
    {
      "product": {
        "sku": "PN-002",
        "name": "Blue pen set"
      },
      "inventory": {
        "count": 30,
        "warehouse": "NYC"
      }
    }
  ],
  "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.