Skip to content

convertto-json bigint is not properly serialized #9207

@gir960

Description

@gir960

[bigint]1|ConvertTo-Json

results in

{
"IsPowerOfTwo": true,
"IsZero": false,
"IsOne": true,
"IsEven": false,
"Sign": 1
}

instead of 1
tested on 6.2.0 on linux and 5.1 on windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-No ActivityIssue has had no activity for 6 months or moreWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions