If you’re trying to work with your azure ARM templates, specifically converting to and from JSON and you’re getting continual errors, try removing any comments from your template file.
Here is our template file:
When running convertfrom-json, you can these errors:
The (1685) is which character had your issue. Put your JSON file into a variable, and perform the “substring” method:
THis shows us our comment had the issue. Once removed, convert-fromjson worked fine.