# Convert Order Lines to JSON

**Use case:** 

Convert free text order lines into JSON with SKU, size and color so ecommerce systems process them without manual entry.

## Input

```json
{
  "texts": [
    "Order: 2 Nike Air Max, size 10, color black; 1 running socks, white"
  ],
  "schema": {
    "item": "",
    "quantity": "",
    "size": "",
    "color": ""
  }
}
```

## 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.