Cockpit: create binding json type and use it