【发布时间】:2021-05-13 05:48:45
【问题描述】:
我想为这些值传递变量,但我不能让它们去,例如在 user_id 我想传递变量 $userID 这是我正在使用的 Body 的一个示例:
$body = '{
"data":
[
{
"user_id":$userID,
"type":"manual",
"date":"2021-01-30",
"duration":"150",
"jobcode_id":"15281216",
"notes":"This is a test of a manual time entry",
"customfields": {
"54138" : "IT Services",
"54136" : "Yes"
}
}
]
}'
【问题讨论】:
标签: json string powershell variables scripting