JSON
- JSON is all about representing data in name value pairs
- Each name value pair will have following syntax
"<name>" : <value>
-
Value can be of two broader types
- Simple/Scalar type
- text/string: value will be in single or double quotes
- Examples
"course": "AWS"
"bike": "yamaha"
- number:
- Examples
"age": 14
"savings": 100000.99
- boolean
- Complex
- array/list: This is represented in
[]
- Examples:
"colors": ["Black", "White" ]
- object: to represent complex structure by taking help of multiple name value pairs represented in
{}
- Examples:
json
"address": {
"flatno": 407,
"building": "Mytrivanam",
"area": "Ameerpet"
}
-
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"
}
]
}