Skip to content
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

Fix inconsistency when serializing objects to JSON between Windows PowerShell and PowerShell Core #184

Closed
adamdriscoll opened this issue Dec 5, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@adamdriscoll
Copy link
Owner

commented Dec 5, 2017

image

This works on Windows PowerShell but not PowerShell Core

Start-UDDashboard -AutoReload -Wait -Dashboard (
    New-UDDashboard -Title "Example title" -Content {#-Pages $pages
        New-UdTable -Title "Server Information" -Headers @('header1','header2') -Endpoint {
            @{
                'Computer Name'         = 'test1'
                'Operating System'      = 'test2'
                'Total Disk Space (C:)' = 'test3'
                'Free Disk Space (C:)'  = 'test4'
            }.GetEnumerator() | Out-UDTableData -Properties @("Name", "Value")
        }
    }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.