$ErrorActionPreference = 'Stop' . "$PSScriptRoot/add_impl_javadoc.ps1" $utf8 = [System.Text.UTF8Encoding]::new($false) $obj = [ordered]@{ callerLabel = $CallerLabel mainCallerLabel = $MainCallerLabel classDesc = $ClassDesc callers = $Callers } $json = $obj | ConvertTo-Json -Depth 5 [System.IO.File]::WriteAllText("$PSScriptRoot/javadoc-strings.json", $json, $utf8) Write-Host "Exported javadoc-strings.json"