I am using PowerShell 5.1 and adding the key, value content in hashtables. but I see, it is not adding the complete content in value when the value is too large around 6000 characters. So, my question is: Is there any limit while we use PowerShell hashtables, if yes, what could be the other way to save the content as key and value pair.
$inputFileJson = @{}
$inputFileJson.Add($config.NAME,$config.VALUE)
$inputFileJson | ConvertTo-Json -Depth 20 | Out-File -Encoding utf8 $localDir\"\\input.json\" -Force