Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I apply DataSift validations or transformations to arrays, Collections, Maps…?

0
Posted

Can I apply DataSift validations or transformations to arrays, Collections, Maps…?

0

Yes, and you can process these types of objects in two different ways: • If you want to validate them as a whole you can use (or create) any validator / transformer which defines an array, a Collection, a Map… as one of its data parameters, and process it the way you want as a whole entity, like you would do with any other piece of data. • If you want to iterate through the elements of an array or Collection, or the entries of a Map, you can use DataSift’s iteration mechanism (see User Guide). Both for validation and transformation specs there are three predefined iterating validators/transformers called ArrayIterator, CollectionIterator and MapIterator (see the Predefined Entities reference documentation) which allow you to define nested validations or transformations that these iterators will apply on each of the elements of the arrays, Collections or Maps they may get as targets.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123