...
Keep a semi-flat structure and add profile_images to the top-level. The profile_images itself would not be flat, and would allow for an image for per user, keyed by user id.
Code Block |
---|
{ ... "author": "example-user", ... "profile_images": { "example-user": { ... }, }, "username2": { ... }, "username3": { ... }, } } |
Option 4
Add a structure for user details keyed by user id.
Code Block |
---|
{
...
"author": "example-user",
...
"users": {
"example-user": {
"profile": {
"image": {
"raw": "http://...",
"small": "http://...",
},
},
"username2": {
...
},
"username3": {
...
},
}
} |