Hi I'm returning a JSON output from the puppet task which is written in PowerShell(.ps1) file. The output returned from the task is a JSON value. I have a plan in which I'm calling puppet task which is written in PowerShell and after getting the result I'm using parsejson function to parse the output received inside the plan.
*Example for the JSON returned by task:* { "height": "5\\11", "name": "Raghuram" } after calling parsejson on the above json string I received below object, { "height": "511", "name": "Raghuram" } the slashes are getting removed in the parsed object of JSON string. After googling, I used this Link <https://stackoverflow.com/questions/41290380/ruby-json-parse-stripping-escaped-back-slashes-from-string> and put three slashes in the input string. *Input:* { "height": "5\\\11", "name": "Raghuram" } then also I got the same output with all the slashes removed. I need any tricks/tips to mitigate this issue. *Excepted Output:* { "height": "5\11", "name": "Raghuram" } Thanks Raghuram Baisani -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/102a0324-ec2a-45c9-b54b-869f780e3328n%40googlegroups.com.