首页 > 解决方案 > 在 Postman 中将 JSON 嵌套节点转换为 x-www-form-urlencoded

问题描述

有人可以让我知道我们如何使用帖子将以下内容转换JSONx-www-form-urlencoded格式。我检查了这个链接,但它没有工作。 将 JSON 转换为 x-www-form-urlencoded

我还没有找到满意的答案。

{
    "Dto":
       6897
    ,
    "ConfirmationResponses":{
        "Tenants_Delete":true
}
}

如果我在 raw 中使用上述JSON内容,它在邮递员中工作正常。请参阅以下屏幕

在此处输入图像描述

但它不起作用x-www-form-urlencoded。它不读取 Tenants_Delete 命令。

在此处输入图像描述

我试过的另外两种方法如下

在此处输入图像描述

标签: jsonpostmanx-www-form-urlencoded

解决方案


尝试这个

在此处输入图像描述

输出 ==> Req==>{"Dto":"689","ConfirmationResponses":{"Tenants_Delete":"true"}} POST /submit 200 21.842 ms - 7

在此处输入图像描述


推荐阅读