This fails with: `Error: only generation of JSON objects or arrays allowed`