fixed some syntax for arrays and objects