Emit nested arrays and objects