# Convert World Bank indicator JSON to CSV

**Use case:** 

Turn World Bank US GDP API records into analysis-ready CSV columns for spreadsheets and data pipelines.

## Input

```json
{
  "jsonText": "{\"records\":[{\"id\":1,\"customer\":{\"name\":\"Ada Lovelace\"},\"status\":\"active\"},{\"id\":2,\"customer\":{\"name\":\"Grace Hopper\"},\"status\":\"active\"}]}",
  "jsonUrls": [
    {
      "url": "https://api.worldbank.org/v2/country/USA/indicator/NY.GDP.MKTP.CD?format=json&per_page=10"
    }
  ],
  "recordPath": "[1]",
  "flatten": true,
  "flattenSeparator": ".",
  "arrayMode": "stringify",
  "arrayJoinSeparator": " | ",
  "columns": [
    "country.value",
    "indicator.value",
    "date",
    "value"
  ],
  "delimiter": "comma",
  "includeBom": true,
  "maxRows": 10,
  "onError": "fail"
}
```

## Output

```json
{
  "source": {
    "label": "Source",
    "format": "string"
  },
  "rowCount": {
    "label": "CSV rows",
    "format": "integer"
  },
  "columns": {
    "label": "Columns",
    "format": "array"
  },
  "preview": {
    "label": "Row preview",
    "format": "array"
  }
}
```

## About this Actor

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