fix constructor: items as json