print array and object nicely