I have log files which stores the output in json format (looks to be). but when i try to use jq method of reading the file its not working
command i used echo $log | jq '.username'
log file contains :
{u'username': u'tempname', u'command_log': u'logfilelocation', u'reporting': True}
I am trying to use
echo $log | jq '.command_log'
I want to read the command_log value and pass this to some other function.
Getting Error parse error: Invalid numeric literal