Title: ConvertTo-Json Honors JsonPropertyAttribute · Issue #6847 · PowerShell/PowerShell · GitHub
Open Graph Title: ConvertTo-Json Honors JsonPropertyAttribute · Issue #6847 · PowerShell/PowerShell
X Title: ConvertTo-Json Honors JsonPropertyAttribute · Issue #6847 · PowerShell/PowerShell
Description: In PowerShell v6, Convert(To\From)-Json uses Newtonsoft.Json. ConvertTo-Json acknowledges JsonIgnoreAttributes but does not honor JsonPropertyAttributes. have some objects that are decorated with these attributes and serialize differentl...
Open Graph Description: In PowerShell v6, Convert(To\From)-Json uses Newtonsoft.Json. ConvertTo-Json acknowledges JsonIgnoreAttributes but does not honor JsonPropertyAttributes. have some objects that are decorated with t...
X Description: In PowerShell v6, Convert(To\From)-Json uses Newtonsoft.Json. ConvertTo-Json acknowledges JsonIgnoreAttributes but does not honor JsonPropertyAttributes. have some objects that are decorated with t...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/6847
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ConvertTo-Json Honors JsonPropertyAttribute","articleBody":"In PowerShell v6, Convert(To\\From)-Json uses Newtonsoft.Json. ConvertTo-Json acknowledges JsonIgnoreAttributes but does not honor JsonPropertyAttributes. have some objects that are decorated with these attributes and serialize differently between ASP.NET and PowerShell. I've had to make a hacked version of ConvertTo-Json to support these attributes. For me, it results in a difference in casing which causes my JavaScript code to fail. \r\n\r\nI propose that the JSON cmdlets honor the JsonPropertyAttributes placed on properties. \r\n\r\n","author":{"url":"https://github.com/adamdriscoll","@type":"Person","name":"adamdriscoll"},"datePublished":"2018-05-10T03:11:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/6847/PowerShell/issues/6847"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:22786450-bf9e-ac49-5db4-7b64881c87e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A2A:F01E1:4EEF703:6E50D8C:6A54F835 |
| html-safe-nonce | 041aed710b22a8677132c174cee93553266a4d3ca46b001e06dd0e62165276dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTJBOkYwMUUxOjRFRUY3MDM6NkU1MEQ4Qzo2QTU0RjgzNSIsInZpc2l0b3JfaWQiOiIzMTg5MTg3Mjk0MDg4NDYwMzQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0d5e6b4665f991ff41f91aa431db7518c7691a80f8f115a7662bdad3f056754c |
| hovercard-subject-tag | issue:321794738 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/6847/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e8652018c281f3d06e3a8c00eecc0a6f405ee74bef9bd67aa9a821ccf9e737d/PowerShell/PowerShell/issues/6847 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e8652018c281f3d06e3a8c00eecc0a6f405ee74bef9bd67aa9a821ccf9e737d/PowerShell/PowerShell/issues/6847 |
| og:image:alt | In PowerShell v6, Convert(To\From)-Json uses Newtonsoft.Json. ConvertTo-Json acknowledges JsonIgnoreAttributes but does not honor JsonPropertyAttributes. have some objects that are decorated with t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adamdriscoll |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd26d3896747463b6bd56edd5e290edb595c3cbc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width