made jsonize function