modified json parser and made command dictionary