I have used convert to yaml and convert json to yaml now I have say $a=$b.path.s.values="//server/main/builds" I want to replace /with \but not happen as it's yaml element $a=$b.path.s.values.replace("/","\") not working for yaml element
#the full code
$c=c:\temp\my.json
$b=gc $c -raw | out-string| convertfrom-json| convertto-yaml
$b=$b.convertfrom-yaml
$a=$b.path.s.values.replace("/","\")
My json like
{
Path:
S://server/mypath/subdir
}