你好,有人可以帮助我在使用JSR223 PreProcessor时删除请求上的附加"{和"},这是我在下面生成请求时使用的语法。非常感谢您的答复。非常感谢。
截图:

预期结果:
"metrics": {
"com.cixsoft.agent.metric.NetworkMetric": "NetworkMetric.json",
"com.cixsoft.agent.metric.ProcessInfoMetric": "ProcessInfoMetric.json",
"com.cixsoft.agent.metric.CpuMetric": "CpuMetric.json"
},实际结果:
"metrics": {
"{ -<< Remove this open curly braces
"com.cixsoft.agent.metric.NetworkMetric": "NetworkMetric.json",
"com.cixsoft.agent.metric.ProcessInfoMetric": "ProcessInfoMetric.json",
"com.cixsoft.agent.metric.CpuMetric": "CpuMetric.json"
"} -<< -<< Remove this close curly braces
},发布于 2022-08-23 10:45:36
例如,我们需要知道:
agentSimUserMetric变量的值userMetric变量的看着我的水晶球我看到你有这样的东西:
"metrics" : {
${userMetric}
}而你需要的只是
"metrics" : ${userMetric}因此,我99.9%肯定是you添加了这些花括号,并要求我们提供一个关于如何删除它们的建议,听起来有点奇怪。
更多信息:
https://stackoverflow.com/questions/73457060
复制相似问题