[DEV] generate array and object in one line when they are simple