Sample code for 30+ languages & platforms
PowerShell

AppendArrayItems Example

Demonstrates the AppendArrayItems function.

Note: This example requires Chilkat v9.5.0.82 or above.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$jarr1 = New-Object Chilkat.JsonArray
$jarr1.Load("[ 1, 2, 3, 4]")

$jarr2 = New-Object Chilkat.JsonArray
$jarr2.Load("[ 5, 6, 7, 8]")

$jarr1.AppendArrayItems($jarr2)

$($jarr1.Emit())
# Expected output: [1,2,3,4,5,6,7,8]

$($jarr2.Emit())
# Expected output: [5,6,7,8]