# parsestring2json: Parse String to JSON

> parsestring2json (Parse String to JSON) is a 1001fx API function in the group Data & JSON: POST https://api.1001fx.com/data/parsestring2json, 1 credit per call. It works as a ready-made module in n8n or as a plain HTTP call.

Parses a string into a JSON object.

- Group: Data & JSON
- Endpoint: `POST https://api.1001fx.com/data/parsestring2json`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 1 credit per call
- Ready-made in: n8n
- Docs: https://1001fx.com/functions/parsestring2json

## Parameters

- `string` (string, required) – String Input: String to be parsed

## Example: Parse string

```bash
curl -X POST 'https://api.1001fx.com/data/parsestring2json' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"string":"{\"module\":\"address\",\"function\":\"city\"}"}'
```

Answer (HTTP 200):

```json
{
  "result": {
    "module": "address",
    "function": "city"
  }
}
```
