Json read/write, subprocess & switch by dictionary.