create feature for widgets with centralized json body validation