Get keys and values
Returns one array with keys and one array with values
Input
Expects a json body
{
"json": {
"foundation": "Mozilla",
"model": "box",
"week": 45,
"transport": "car",
"month": 7
}
}Output · HTTP 200
Response
{
"result": {
"keys": [
"foundation",
"model",
"week",
"transport",
"month"
],
"values": [
"Mozilla",
"box",
45,
"car",
7
]
}
}Show curl command
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}}'