{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7436","repository_url":"https://api.github.com/repos/PowerShell/PowerShell","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7436/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7436/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7436/events","html_url":"https://github.com/PowerShell/PowerShell/issues/7436","id":347093159,"node_id":"MDU6SXNzdWUzNDcwOTMxNTk=","number":7436,"title":"Add `.jsonc` support to `ConvertFrom-Json`","user":{"login":"chriskuech","id":3680671,"node_id":"MDQ6VXNlcjM2ODA2NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/3680671?v=4","gravatar_id":"","url":"https://api.github.com/users/chriskuech","html_url":"https://github.com/chriskuech","followers_url":"https://api.github.com/users/chriskuech/followers","following_url":"https://api.github.com/users/chriskuech/following{/other_user}","gists_url":"https://api.github.com/users/chriskuech/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskuech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskuech/subscriptions","organizations_url":"https://api.github.com/users/chriskuech/orgs","repos_url":"https://api.github.com/users/chriskuech/repos","events_url":"https://api.github.com/users/chriskuech/events{/privacy}","received_events_url":"https://api.github.com/users/chriskuech/received_events","type":"User","site_admin":false},"labels":[{"id":552752310,"node_id":"MDU6TGFiZWw1NTI3NTIzMTA=","url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Area-Cmdlets-Utility","name":"Area-Cmdlets-Utility","color":"5319e7","default":false},{"id":423526741,"node_id":"MDU6TGFiZWw0MjM1MjY3NDE=","url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Issue-Discussion","name":"Issue-Discussion","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-02T16:50:27Z","updated_at":"2018-08-20T12:12:21Z","closed_at":null,"author_association":"NONE","body":"\"JSON with Comments\" with the `jsonc` file extension is a natively supported file format in VS Code.  JSONC adds JS-style comments to JSON files.  `ConvertFrom-Json` currently does not support parsing JSONC strings.  JSONC support could be added through either a `-Comments` switch or by default.  \r\n\r\n### Background\r\nAzure Resource Manager PowerShell and Azure Resource Manager templates are a critical component of the Azure ecosystem; many templates provided by Azure are large and complicated JSON files with over 1000 lines.  Azure Resource Manager PowerShell cmdlets currently support JSONC templates, but cannot be used in conjunction with custom PowerShell validation due to the lack of JSONC support in `ConvertFrom-Json`\r\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/comments/414295224","html_url":"https://github.com/PowerShell/PowerShell/issues/7436#issuecomment-414295224","issue_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7436","id":414295224,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDI5NTIyNA==","user":{"login":"johlju","id":7189721,"node_id":"MDQ6VXNlcjcxODk3MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7189721?v=4","gravatar_id":"","url":"https://api.github.com/users/johlju","html_url":"https://github.com/johlju","followers_url":"https://api.github.com/users/johlju/followers","following_url":"https://api.github.com/users/johlju/following{/other_user}","gists_url":"https://api.github.com/users/johlju/gists{/gist_id}","starred_url":"https://api.github.com/users/johlju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johlju/subscriptions","organizations_url":"https://api.github.com/users/johlju/orgs","repos_url":"https://api.github.com/users/johlju/repos","events_url":"https://api.github.com/users/johlju/events{/privacy}","received_events_url":"https://api.github.com/users/johlju/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T12:12:21Z","updated_at":"2018-08-20T12:12:21Z","author_association":"NONE","body":"This would be a great addition to an already well used cmdlet, able to import a .jsonc file and convert it to an object as usually. \r\n\r\n```powershell\r\n'{\r\n    // Comment\r\n    \"property1\": \"value1\"\r\n}' | ConvertFrom-Json\r\n```\r\n\r\nTo use `ConvertFrom-Json` now, it first needs to loaded and then be stripped from comments."}}
{"actor":{"display_login":"johlju"}}