parse arrays and inner objects