小编man*_*nan的帖子

如何在powershell中比较JSON

我有一个要求,需要将文件中的 JSON 对象与进入 Anypoint MQ 队列的 JSON 消息进行比较。我能够从队列中获取消息。我使用了下面的脚本,但它不起作用。我都做了-eqCompare-Object但它们不起作用。

$po_ps_output = $filemessagecontent | ConvertFrom-Json
$po_python_output = $mqmessagecontent.body | ConvertFrom-Json
$result = $po_ps_output -eq $po_python_output
Run Code Online (Sandbox Code Playgroud)

powershell mulesoft

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

mulesoft ×1

powershell ×1