Data Structures

posts.json (Includes activeUser.json and postsManifest.json)

{

  "postsManifest": ["insta-1.json", "insta-2.json"],

  "posts": [

    {

      "id": "post_1",

      "userImage": "path/to/user1.jpg",

      "userName": "User1",

      "postImage": "path/to/post1.jpg",

      "description": "This is a sample post.",

      "comments": [

        {

          "user": "User2",

          "comment": "Nice post!"

        },

        {

          "user": "User3",

          "comment": "I love it!"

        }

      ],

      "likedBy": ["User2", "User3"]

    },

    {

      "id": "post_2",

      "userImage": "path/to/user2.jpg",

      "userName": "User2",

      "postImage": "path/to/post2.jpg",

      "description": "Another sample post.",

      "comments": [

        {

          "user": "User1",

          "comment": "Great photo!"

        }

      ],

      "likedBy": ["User1", "User3"]

    }

  ],

  "postsManifest2": ["insta-2.json"],

  "activeUser": {

    "userImage": "path/to/user1.jpg",

    "userName": "User1"

  },

  "additionalPosts": [

    {

      "id": "post_3",

      "userImage": "path/to/user3.jpg",

      "userName": "User3",

      "postImage": "path/to/post3.jpg",

      "description": "Yet another sample post.",

      "comments": [

        {

          "user": "User1",

          "comment": "Nice shot!"

        },

        {

          "user": "User2",

          "comment": "Amazing!"

        }

      ],

      "likedBy": ["User1", "User2"]

    }

  ]

}

networkObject.json

{

  "Posters": {},

  "SubjectsByPoster": {},

  "Commenters": { },

  "Likes": {}
}