Parse json strings
Parse json strings
The jq subcommand makes use of gojq (https://github.com/itchyny/gojq) to provide json parsing capabilities.
newrelic utils jq [flags]
echo '{"foo": 128}' | newrelic utils jq '.foo'
-h, --help help for jq
-a, --accountId int the account ID to use. Can be overridden by setting NEW_RELIC_ACCOUNT_ID
--debug debug level logging
--format string output text format [JSON, Text, YAML] (default "JSON")
--plain output compact text
--profile string the authentication profile to use
--trace trace level logging
- newrelic utils - Various utility methods