I have converted the following JSON file to powershell representation object.
{ \"computer\": [ { \"children\": [ {
-depth argument for ConvertTo-Json solves the issue.
$jsonRepresentation | ConvertTo-Json -depth 100 | Out-File "D:\dummy_path\file.json"