I have the following string:
"{\n \"type\": \"service_account\",\n \"project_id\": \"my-project-123\",\n \"time\": \"23:00:22.23124\"\n }"
And I want a formatted JSON like this:
{
"type":"service_account",
"project_id":"my-project-123",
"time":"23:00:22.23124"
}
x='"{\n \"type..."'orx="{\n \"type..."?jq 'fromjson' yourfile.json