Parse config into json