I'm looking to use jq to automatically resolve any field which contains json as json, example:
Input
{
"guaranteedPrizes": "[]",
}
Output
{
"guaranteedPrizes": [],
}
I'm looking to use jq to automatically resolve any field which contains json as json, example:
Input
{
"guaranteedPrizes": "[]",
}
Output
{
"guaranteedPrizes": [],
}
Copyright © 2021 Jogjafile Inc.
For a generic solution, you might wish to consider
walk/1
, and for efficiency, avoid callingfromjson
redundantly: