remove JSON handling from config task and test it