I have this JSON in a file called test.txt
{
"local-dev": {
"client": {
"server-url": "http://localhost:3000"
},
"server": {
"renterEndpoint": {
"rejectUnauthorized": false,
"host": "blah.blah.com",
"port": 443,
"path": "/api/renter"
},
"homeownerEndpoint": {
"rejectUnauthorized": false,
"host": "blah.blah.com",
"port": 443,
"path": "/api/homeowner"
}
}
}
}
When I run this PowerShell command:
Get-Content "test.txt" -Raw | ConvertFrom-Json
The out put I get does not include any of the objects under the second level (i.e. the client and server objects have no properties).
local-dev
---------
@{client=; server=}
Anyone have any ideas?