# Convert Flight Itineraries to JSON

**Use case:** 

Extract airline, flight number, origin, destination and time from an itinerary line into JSON for travel tools.

## Input

```json
{
  "texts": [
    "Delta DL245 from JFK to LAX departing 7:40am arriving 10:55am on June 12"
  ],
  "schema": {
    "airline": "",
    "flightNumber": "",
    "origin": "",
    "destination": "",
    "departure": "",
    "arrival": ""
  }
}
```

## Output

```json
{
  "_sourceIndex": {
    "label": "Source index",
    "format": "number"
  },
  "name": {
    "label": "Name",
    "format": "text"
  },
  "price": {
    "label": "Price",
    "format": "text"
  },
  "date": {
    "label": "Date",
    "format": "text"
  },
  "truncated": {
    "label": "Truncated",
    "format": "boolean"
  },
  "observedAt": {
    "label": "Converted at",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Tool: Any Text to Structured JSON](https://apify.com/scrapers_lat/text-to-json-tool) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapers_lat/text-to-json-tool) to learn more, explore other use cases, and run it yourself.