json support introduced and marshalling config builder refactoring