json parser and bash commands