handling json for list_of_list type data