Configuration files are casted to JSON only when needed.