Title: Expose ConvertToJson as an API · Issue #8123 · PowerShell/PowerShell · GitHub
Open Graph Title: Expose ConvertToJson as an API · Issue #8123 · PowerShell/PowerShell
X Title: Expose ConvertToJson as an API · Issue #8123 · PowerShell/PowerShell
Description: We have ConvertFromJson exposed as an API, but not ConvertToJson. If we had both, folks that are writing apps that host PowerShell could access Convert*Json via the API rather than needing to use a runspace! I think we could simply conve...
Open Graph Description: We have ConvertFromJson exposed as an API, but not ConvertToJson. If we had both, folks that are writing apps that host PowerShell could access Convert*Json via the API rather than needing to use a...
X Description: We have ConvertFromJson exposed as an API, but not ConvertToJson. If we had both, folks that are writing apps that host PowerShell could access Convert*Json via the API rather than needing to use a...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8123
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose ConvertToJson as an API","articleBody":"We have [ConvertFromJson](https://github.com/PowerShell/PowerShell/blob/1243891ea8c04609ce21d0b31d40945fd46a3576/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs#L52) exposed as an API, but not ConvertToJson.\r\n\r\nIf we had both, folks that are writing apps that host PowerShell could access Convert*Json via the API rather than needing to use a runspace!\r\n\r\nI think we could simply convert what's in `ConvertTo-Json` to C# and put it in this `JsonObject`class and then have `ConvertTo-Json` just call that API.","author":{"url":"https://github.com/TylerLeonhardt","@type":"Person","name":"TylerLeonhardt"},"datePublished":"2018-10-25T20:04:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/8123/PowerShell/issues/8123"}
| 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:b4cb0888-5301-952b-cf56-0214bd4075b0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C494:813E7:6095:777E:6A56DABA |
| html-safe-nonce | 592b417eb2632350bbe2e1d75b44cf130aa97af0ff44d686a1b5e810a363f00e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDk0OjgxM0U3OjYwOTU6Nzc3RTo2QTU2REFCQSIsInZpc2l0b3JfaWQiOiI4OTUwMDczMTQyMDYxNDg4ODI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 704ca615e643e3fdcd17b6a48697de5f9008262a3adf880cf5beb7b3865b7753 |
| hovercard-subject-tag | issue:374110179 |
| 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/8123/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78b3ae4b33e03e8a34daa1d88bdd3d486d7c2fdb1b4369e0d9c899aadee1e3a8/PowerShell/PowerShell/issues/8123 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78b3ae4b33e03e8a34daa1d88bdd3d486d7c2fdb1b4369e0d9c899aadee1e3a8/PowerShell/PowerShell/issues/8123 |
| og:image:alt | We have ConvertFromJson exposed as an API, but not ConvertToJson. If we had both, folks that are writing apps that host PowerShell could access Convert*Json via the API rather than needing to use a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TylerLeonhardt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5220a278731283038daf0ed00b41f06ef7ff9539020ecc806c5c5a0fb6bda25a |
| 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 | 8684ae1a81cd3e4ef219b241179982bbda1a5b1f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width