# ConvertFrom-JsonAsHashtable **Repository Path**: abgox/ConvertFrom-JsonAsHashtable ## Basic Information - **Project Name**: ConvertFrom-JsonAsHashtable - **Description**: 适用于 Windows PowerShell 5.0+ 的 JSON 到哈希表的转换,类似于 PowerShell 7.0+ 的 'ConvertFrom-Json -AsHashtable' - **Primary Language**: PowerShell - **License**: MIT - **Default Branch**: main - **Homepage**: https://www.powershellgallery.com/packages/ConvertFrom-JsonAsHashtable - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-16 - **Last Updated**: 2025-10-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: ConvertFrom-Json, Powershell ## README

✨ConvertFrom-JsonAsHashtable✨

English | 简体中文 | Powershell Gallery | Github | Gitee

license version PowerShell Gallery code size repo size created

---

喜欢这个项目?请给它一个 Star ⭐️ 或 赞赏 💰

## 介绍 适用于 [Windows PowerShell 5.0+](https://learn.microsoft.com/powershell/scripting/what-is-windows-powershell) 的 JSON 到哈希表的转换,类似于 [PowerShell 7.0+](https://learn.microsoft.com/powershell/scripting/overview) 的 `ConvertFrom-Json -AsHashtable` ## 安装 - 使用 `Install-Module` ```powershell Install-Module ConvertFrom-JsonAsHashtable ``` - 使用 `Install-PSResource` ```powershell Install-PSResource ConvertFrom-JsonAsHashtable ``` - 使用 [Scoop](https://scoop.sh/) - 添加 [abyss](https://abyss.abgox.com) bucket ([Github](https://github.com/abgox/abyss) 或 [Gitee](https://gitee.com/abgox/abyss)) - 安装它 ```shell scoop install abyss/abgox.ConvertFrom-JsonAsHashtable ``` ## 使用 ```powershell $jsonString = '{ "key1": "value1", "key2": { "subkey1": "subvalue1", "subkey2": ["item1", "item2"] }, "key3": [ {"nestedkey1": "nestedvalue1"}, {"nestedkey2": "nestedvalue2"} ] }' $jsonString | ConvertFrom-JsonAsHashtable ```