refactored ugly jansson extensions out
refactored ugly jansson extensions out
changes before removal of type setting extension