【发布时间】:2018-06-27 06:44:43
【问题描述】:
我想发送一个 JSON 请求,但问题是我需要将我的 userPropertiesAsJsonString 字段作为 JSON 字符串发送。
如何将 userPropertiesAsJsonString 作为 JSON 字符串发送?
{
"User" : {
"userId" : "11111",
"userPropertiesAsJsonString" : ?
}
}
userPropertiesAsJsonString 是;
{
"properties" : {
"propertyName" : "test",
"propertyDesc" : "desc"
}
}
【问题讨论】:
-
在 Postman 中粘贴您在此处发布的内容有什么问题?如果我没记错的话应该可以工作。只需确保引号用
\"转义,而不仅仅是" -
如果这是在 JavaScript 中,你不能在那里做
JSON.stringify(userPropertiesAsJsonString)吗?
标签: javascript json postman