I succeeded to use sed -i on Linux to modify a JSON value in a file.
$> sed -i '/brand/c\ \"brand\": \"'valueModified'\"' ./config/brand.config.json
But on MacOS I get:
sed: 1: "./config/brand.config.json": invalid command code .
I'm trying to use this command in a shell script on linux and macOS.
Thank you