Parse string passed to loadJSON.