Store config as json instead of js.