utahiosmac / Marshal

Marshaling the typeless wild west of [String: Any]
MIT License
699 stars 62 forks source link

How to map arrays? #126

Open 4taras4 opened 6 years ago

4taras4 commented 6 years ago
[{"id":1, "login":"Alexander_test", "status":0, "keys":[...], "activity":true, "nickname":"alexandr", "custom_nickname":""}, {"id":2, "login":"Alexander", "status":2, "keys":[...], "activity":false, "nickname":"Alexander", "custom_nickname":"Александр Болдырев", "msg_lifetime":300, "lastMsgId":55167323, "lastMsgTime":1546789007601, "lastText":"asdsfg23423dfsdgf123dsfsdf", "lastCipher":"adfsdg34534534sfgdfg234234", "lastStatus":2, "lastUserId":2, "countUnreadMsgs":5, "mydevice":0, "users":[], "out": []}]

How i can map this array? I'm currently created UserStructure

scottandrew commented 6 years ago

What does your structure look like? There are several ways to decode your keys it all depends on what they are in your structure.