diff --git a/config_json.bash b/config_json.bash index 3ecf1b5..8d2b713 100755 --- a/config_json.bash +++ b/config_json.bash @@ -7,7 +7,7 @@ read_json() { local SECTION="$2" local KEY="$3" - jq -r ".${SECTION}.${KEY}" "$JSON_FILE" + jq -r ".${SECTION}[\"${KEY}\"]" "$JSON_FILE" } # Function to write a value to a JSON configuration file