# getjsonkeysandvalues: Get Keys and Values from JSON Object

> getjsonkeysandvalues (Get Keys and Values from JSON Object) is a 1001fx API function in the group Data & JSON: POST https://api.1001fx.com/data/getjsonkeysandvalues, 1 credit per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

Returns two arrays. One containing the keys and on containing the values of the object.

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

## Parameters

- `json` (object, optional) – JSON Input: JSON object
- `jsonString` (string, optional) – Stringified JSON Input: Stringified JSON

## Example: Get keys and values

```bash
curl -X POST 'https://api.1001fx.com/data/getjsonkeysandvalues' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"json":{"foundation":"Mozilla","model":"box","week":45,"transport":"car","month":7}}'
```

Answer (HTTP 200):

```json
{
  "result": {
    "keys": [
      "foundation",
      "model",
      "week",
      "transport",
      "month"
    ],
    "values": [
      "Mozilla",
      "box",
      45,
      "car",
      7
    ]
  }
}
```
