Fix NullHandler
Add json config support