I hadn’t realised Octopus was using Powershell to parse the JSON. It looks like we have powershell 4 running on the Octopus server. It appears that the older version of ConvertFrom-Json cannot handle json embedded within Json. (see the example we attached).
We’ll see about upgrading the powershell version on that host and retest.