@ulrik Thanks a lot! It is so strange because I tried a very similar method for accessing the properties using [] with no luck. For some reason I was always returning the name of the key rather han the object itself...
You saved me :)
@d-healey I say parser but I reckon it was an object sorter of some kind... @ulrik solution is indeed what I need
Thanks guys!