Decode JSON Nested Objects

Ok yeah that’s what I assumed. However, when I remove the brackets I get a Poison.EncoderError:

unable to encode value: {"page", %ElixirServer.CurrentlyReprModule.Page{number: 0, size: 4, totalElements: 30, totalPages: 8}}

Any idea why this is happening? The Page struct follows the same lines as my CurrentlyBlock struct (which works).