New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No support for jsonc files #200
Comments
I would also like to see this! |
Looking more and more into this there are a few parts to this. -This codebase uses lines like this this & this that could be amended to match on either json/jsonc files
So I propose 2 things
either
My preference would be to update to be compliant with PowerShell 7 as that is what many build & release pipelines will be using in other tooling (Azure DevOps / GitHub Actions) so should no be an issue & is where most likely run the arm-ttk anyway - I know that is where we would be running it using Sam Cogans extension (which would also need a PR to incorporate this) however if you would prefer to keep this compliant with v5.1 I'd be happy to put in the PR for the change of the ConvertFrom-Json function as opposed to removing it. |
Are you asking for jsonc because you want support for comments in the files? Or because you want no quotes around properties (for example)? If the former, I don't mind a PR that looks for *.json and *.jsonc - if the latter, ARM doesn't actually like that so............ |
My use case is just for comments in series of files where they are complex (lots of linked templates being used)
|
I would separate things a bit...
re: PSv7 - I would separate this work item and probably wait until V7 GAs, we've run into an issue or two in V7 and given ConvertFrom-JSON is working would wait until there is a greater need for that... Thoughts? |
On a quick scan of this repo there's no support at all for using jsonc files, which whilst uncommon compared to normal json files should be allowed as ARM is happy with accepting deployments that use jsonc files.
The text was updated successfully, but these errors were encountered: