Azure Classroomnotes 29/Jul/2023

Json (Java Script Object Notation)

  • This is collection of name value pairs
  • This is a data representation format
  • syntax: <name>: <value>
  • types:
    • simple
      • string/text:
        • value will be in single or double quotes
      • number:
        • value will be numeric without quotes
      • boolean:
        • value will be true or false
    • complex:
      • list/array:
        • This is represented in []
        • this represents plural
      • object/dictionary/map:
        • This represents multiple name value pairs to define something and is represented in {}
  • Example
"brand": "Dell"

"year": 2019

"SSDsupport": true

"sports": [ "Cricket", "Football" ]

"address":  {
    "flatno": 407,
    "building": "Mytrivanam",
    "city": "Hyderabad"
}
  • Generally json files can be in any format but most widely used is .json
  • List the types of the below jsons
{
    "Users": [
        {
            "Path": "/",
            "UserName": "dell",
            "UserId": "AIDAZ4ECZC3PLYES5TIK5",
            "Arn": "arn:aws:iam::678879106782:user/dell",
            "CreateDate": "2023-07-27T04:21:59+00:00",
            "PasswordLastUsed": "2023-07-27T04:24:40+00:00"
        },
        {
            "Path": "/",
            "UserName": "dummy",
            "UserId": "AIDAZ4ECZC3PA4CITVQLT",
            "Arn": "arn:aws:iam::678879106782:user/dummy",
            "CreateDate": "2023-07-26T04:15:56+00:00",
            "PasswordLastUsed": "2023-07-26T04:16:34+00:00"
        },
        {
            "Path": "/",
            "UserName": "ebuser",
            "UserId": "AIDAZ4ECZC3PK4VIMG73J",
            "Arn": "arn:aws:iam::678879106782:user/ebuser",
            "CreateDate": "2023-07-18T04:53:56+00:00"
        },
        {
            "Path": "/",
            "UserName": "terraform",
            "UserId": "AIDAZ4ECZC3PM2J5DN4U2",
            "Arn": "arn:aws:iam::678879106782:user/terraform",
            "CreateDate": "2023-07-28T03:01:37+00:00"
        }
    ]
}

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube