MicroFrontends Classroomnotes 23/Mar/2022

JSON Contd

  • arrays in json
"colors": ["red", "green", "blue"]
  • objects/dictionary: This generally is muliple name value pairs
{
    "name": "shishir",
    "mobile": "99999999999",
    "courses": ["python", "micro-frontend" ]
}
  • Lets represent movies in a Mall
{
   "name": "AMB Cinemas",
   "location": "Gachibowli",
   "date": "23/03/2022",
   "movies": ["Bheemla Nayak", "Radhe Shyam", "Kashmiri Files"],
   "screens": {
       "screen1": {
           "11:30": {
               "Movie": "Bheemla Nayak"
           },
           "14:30": {
               "Movie": "Radhe Shyam"
           }
       },
       "screen2" : {
           "11:30": {
               "Movie": "Kashmiri Files"
           },
           "14:30": {
               "Movie": "Bheemla Nayak"
           }
       }
   } 
}
  • Lets try to reprsent Cars in a Website like carwale.
{
    "name": "Cars in Car Sale Web Site",
    "brands": {
        "MarutiSuzuki": {
            "Baleno": {
                "bodytype": "HatchBack",
                "versions": ["Sigma MT Petrol", "Sigma AT Petrol"]
            }
        },
        "Jaguar": {
            "JaguarXE": {
                "bodytype": "sedan",
                "versions": ["XE S", "XE SE"]
            }

        }
    }       
}

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner