---
title: Convert JSON to NameValue
slug: convert-json-to-namevalue
docTags: 
createdAt: 2022-12-28T05:34:48.000Z
---

Converts a JSON object to a list ot name value props based on the names of the properties



### API Definition

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://orca.pathfix.com/functions/json/tonamevalue",
  "name": "JSON to NameValue",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "28UsDqyeH3QRdmtVamSQT",
        "code": "{\n    \"output\": [\n        {\n            \"name\": \"micheal\",\n            \"value\": \"21-30\"\n        },\n        {\n            \"name\": \"nathan\",\n            \"value\": \"31-35\"\n        }\n    ],\n    \"size_in_bytes\": 127.0\n}",
        "language": "200"
      },
      {
        "id": "yIX64DyIuDPJgBRFSfAWb",
        "code": "{\n    \"message\": \"error\"\n}",
        "language": "404"
      }
    ],
    "selectedLanguageId": "28UsDqyeH3QRdmtVamSQT"
  },
  "examples": {
    "languages": [
      {
        "id": "ENcJz9TStG38F0X-taA4x",
        "code": "{\n    \"input\": {\n      \"micheal\":\"21-30\",\n      \"nathan\":\"31-35\"\n    }\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "ENcJz9TStG38F0X-taA4x"
  },
  "description": "\nCall the following API:",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

















