Private/Convert-JsonToMarkdown.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
function Convert-JsonToMarkdown { param( [parameter(Mandatory = $true)] [string]$Json, [parameter(Mandatory = $false)] [string]$Title ) ## need this installed #install-module newtonsoft.json -Scope AllUsers #import-module newtonsoft.json $a = ConvertFrom-JsonNewtonsoft $Json $tableContent = Get-DataFromOrderedDic $a $table = @" $Title | Property | Value | |-----------|-----------| $tableContent "@ return $table } |