parse arrays and objects