You can do everything what you want if you have time and skills but why you wanna change config to json? If you do this you must track every call to var in your config.php and change this or write something like wrapper. When new version of CI will be available you start from beginning. This is bad idea.