Possible Duplicate:
Unix command-line JSON parser?
If I have a config file in JSON and a PHP script to flatten the config file into something like this
database_dbname=sensei
database_password=somerandompassword
memcached_host=localhost
....
can I pipe this to my bash script and make each of the entry above as a variable?
./bin/flatten_config.php config.json | ./bin/my_bash_script.sh
so that in my bash-script I can use values from the config file
mysql -D${database_dbname} -p${database_password} ...