Handle json/simplejson, switch to commands from subprocess