[minor] Made config more readable and output error when it receives invalid JSON