> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# constructor

APISummary
Input data in string, key-value or json format and return the parsed `TemplateData` object.

## Syntax

### Harmony

```typescript
constructor(input: string | Record<string, Object> | Object, processor: string);
```

#### Parameters

- `input`: String, key-value or json type data.
- `processor`: Data processor.

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.template-data.constructor`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/template-data/constructor.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| constructor | No | Yes (3.4) | No | No | No | No |

**`constructor`**

Input data in string, key-value or json format and return the parsed TemplateData object.

**Specifications:**

