parsing json on the collection response