dimanche 28 juin 2015

Mapping a large json object (from rest service) to a smaller object? LoDash?

I am receiving a list of tweets (from a rest service) which is a really big list of many properties but I am only interested in a few properties in each item in the collection that is returned.

What is the best way of mapping this to a smaller object?

Does lodash help here?

I do I just iterate over it and create many new object?

Any help appreciated.

Aucun commentaire:

Enregistrer un commentaire