Skip to content

ConvertFrom-Json should have option to produce hashtables instead of objects #3159

@vors

Description

@vors

Json is very convenient to glue tools together.
For example, both python and powershell have ability to serialize and de-serialize anything into json without a schema.
Unfortunately, after de-serialization from json in PowerShell, you get immutable objects.
If you just get mutable hashtables, life would be much better: i.e. you can create some object in python, toss it to powershell, enhance with some info and inspect the complete result.

One of the date points about a similar request: http://stackoverflow.com/questions/3740128/pscustomobject-to-hashtable

It's a more generic question, but I think that in context of json it's especially desirable.

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 reclassifIssue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-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