appsettings.json
example
{
"Logging": {
"LogLevel": {
"Default": "Information"
}
}
}
cat appsettings.json | jq '.Logging.LogLevel.Default |= "Debug"'
{
"Logging": {
"LogLevel": {
"Default": "Debug"
}
},
"AllowedHosts": "*"
}
[{"name":"bathroom","value":18.250000},{"name":"lab","value":17.187500},{"name":"external","value":0.000000},{"name":"bedroom","value":14.937500},{"name":"livingroom","value":17.500000}]
query:
cat data | jq -r '.[] | select(.name=="lab")'
result:
{
"name": "lab",
"value": 17.1875
}
query:
cat data | jq -r '.[] | select(.name=="lab") | .value'
result:
17.1875