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"
}
]
}
Like this:
Like Loading...