start writing collection json logics