# Parse a List of Storage Objects in Unity

**URL:** <https://forum.heroiclabs.com/t/parse-a-list-of-storage-objects-in-unity/727>\
**Category:** Local Setup\
**Created:** [May 13, 2020, 11:47am UTC](https://forum.heroiclabs.com/t/parse-a-list-of-storage-objects-in-unity/727 "2020-05-13T11:47:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![EarthAdam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/earthadam/32/259_2.png) [@EarthAdam](https://forum.heroiclabs.com/u/EarthAdam)\
**Post date:** [May 14, 2020, 11:55am UTC](https://forum.heroiclabs.com/t/parse-a-list-of-storage-objects-in-unity/727/3 "2020-05-14T11:55:17Z")

</div>

@novabyte I’m using the JsonUtility from UnityEngine, and with that trying a mix of ways to match with either the “EventResponse” or “EventList” classes like so:  
`var result = await client.ListUsersStorageObjectsAsync(session4, "events", session4.UserId, limit, null);`  
`EventResponse eventResponse = new EventResponse();`  
`eventResponse = JsonUtility.FromJson<EventResponse>(result);`

Here are the classes:

```auto
[System.Serializable]
public class EventObject
{
    public int start;
    public int stop;
    public int category;
}

[System.Serializable]
public class EventList
{
    public string Collection;
    public string CreateTime;
    public string Key;
    public string PermissionRead;
    public string PermissionWrite;
    public string UpdateTime;
    public string UserId;
    public EventObject Value;
    public string Version;
}
[System.Serializable]
public class EventResponse
{
    public string Cursor;
    public EventList Objects;
}
```

---

_[View the full topic](https://forum.heroiclabs.com/t/parse-a-list-of-storage-objects-in-unity/727)._
