I have a bash.sh script:
#!/usr/bin/env bash
val=$(cat ../my-microservice/conf/config.json)
echo "set my-microservice-config ${val}" | redis-cli
where the config.json:
{
"key" : "value"
}
When I run it I got:
ERR unknown command '}'
How to set a json value properly from the json file?