Refactoring parser logic

* Using map and filter to parse objects