[
'red',
'blue',
'green'
]
["red", "green", "blue"]
["red", "blue", "green"]
{
"color": "red",
"color": "blue",
"color": "green"
}
{
"red": "red",
"blue": "blue"
}
accountNum: '000605802'
/
\
:
{
{
photo: {
width: 1600,
height: 900,
binaries: {
url: 'https://www.example.com/images/34097349843',
thumbnail: 'https://www.example.com/images/thumbs/34097349843'
},
animated: false,
tags: [116, 943, 234, 38793],
}
}
{
"photo": {
"width": 1600,
"height": 900,
"binaries": {
"url": "https://www.example.com/images/34097349843",
"thumbnail": "https://www.example.com/images/thumbs/34097349843"
},
"animated": "false",
"tags": [116, 943, 234, 38793]
}
}
{
"photo": {
"width": 1600,
"height": 900,
"binaries": {
"url": "https://www.example.com/images/34097349843",
"thumbnail": "https://www.example.com/images/thumbs/34097349843"
},
"animated": false,
"tags": [116, 943, 234, 38793]
}
}
{
"photo": {
"width": 1600,
"height": 900,
"binaries": {
"url": "https://www.example.com/images/34097349843",
"thumbnail": "https://www.example.com/images/thumbs/34097349843"
},
"animated": true,
"tags": [116, 943, 234, 38793]
}
}
{
"photo": {
"width": "1600",
"height": "900",
"binaries": {
"url": "https://www.example.com/images/34097349843",
"thumbnail": "https://www.example.com/images/thumbs/34097349843"
},
"animated": "false",
"tags": ["116", "943", "234", "38793"]
}
}
loggedIn: true
<origin>
element<script>
element1.Sends data to specific server to create or update information.
2.Sends data to specific server to create or update information without the risk of creating the resource more than once.
3.Previews what the GET request response might be without the body of the text.
4.Learns the communication channels used by the target source.
5.Requests information from a specific source.
6.Removes information.
{
"host": "Atlanta",
"year": 1996
/_ Centennial Olympics _/
}
{
"host": "Atlanta",
"year": 1996
// Centennial Olympics
}
{
"host": "Atlanta",
"year": 1996,
"comment": "Centennial Olympics"
}
{
"host": "Atlanta",
"year": 1996,
\"Centennial Olympics\"
}
{
"host": "Atlanta",
"year": 1996,
"comment": "\"Centennial Olympics"
}
"'|=(_)(X 72(_)|\/||\*'"
"|=(_)(X 72(_)|\/||\*"
"|=(_)(X\" \"72(_)|\/||\*"
"\s(_)(X 72(_)|\/||\*"
JSON.parse({"first": "Sarah", "last": "Connor"}) ;
printNullness(JSON.parse('{ "lemmings": [] }'));
printNullness(JSON.parse('{ "lemmings": null }'));
printNullness(JSON.parse('{ "lemmings": "null" }'));
function printNullness(testMe) {
if (testMe.lemmings == null) console.log('null');
else console.log('not null');
}
not null
null
not null
null
null
not null
not null
null
null
null
null
null
constant: 6.022E23
"constant": "6.022E23"
"constant": "6\.022\E23"
"constant": 6.022E23
constant: "6.022E23"
Reference Explanation: Scientific Notation is a valid JSON number. You can use e
or E
.
<object>
<script>
<json>
<meta>
{
"avengers": [
"iron man",
"hulk",
"thor",
"black widow",
"ant man",
"spider man'
]
}
{
"avengers": ["iron man", "hulk", "thor", "black widow", "ant man", "spider man"]
}
{
'avengers': [
{'iron man',
'hulk',
'thor',
'black widow',
'ant man',
'spider man'}
]
}
{
"avengers": ["iron man", "hulk", "thor", "black widow", "ant man", "spider man"]
}
{
"avengers": {[
"iron man",
"hulk",
"thor",
"black widow",
"ant man",
"spider man"
]}
}
[
{
"year": 2024
},
{
"location": "unknown"
}
]
\r
\n
{
"result": [
{
"year": 2024
},
{
"location": "unknown"
}
]
}
{
"series": "Star Trek",
"episodes": "The Trouble with Tribbles",
"season": 3
}
"name": 'bb-8'
[]
{}
""
()
JSON.sort()
.*
#
^
"
variance: -0.0823
myVehicleContents = {
van: {
inside: {
'glove box': 'maps',
'passenger seat': 'crumbs',
},
exterior: {
trunk: 'jack',
},
},
};
myVehicleContents.van.inside['glove box'] = gloveBoxContents;
var gloveBoxContents = myVehicleContents.van.inside['glove box'];
gloveBoxContents;
var gloveBoxContents = myVehicleContents.van.glove box.contents;
gloveBoxContents;
myVehicleContents.van.inside['inside'] = gloveBoxContents;
[ ] |
YAML supports # comments but not JSON
"'|=(_)(X 72(_)|\/||*'"
"\s(_)(X 72(_)|\/||*"
"|=(_)(X\" \"72(_)|\/||*"
"|=(_)(X 72(_)|\/||*"
{"rey",'leia',"ashoka",}
['rey', 'leia', "ashoka",}
['rey', 'leia', 'ashoka',}
["rey", "leia", "ashoka"]
{"rey", "leia", "ashoka"}
{
"students": ["Tess", "Erin", "June"]
}
99999999999999999999
"42"
-32
1111.00.110011
JSON.convert()
JSON.stringify()
JSON.export()
JSON.string()
{
"name": "Jane",
"job": "developer",
"skills": ["ruby", "rails", "javascript"],
"available": false
}
{
"name": "Jane",
"job": "developer",
"skills": ["ruby", "rails", "javascript"],
"available": true,
"seeking": "part-time"
}
{
"name": "Jane",
"job": "developer",
"skills": ["ruby", "rails", "javascript"],
"available": "true",
"seeking": "part-time"
}
{
"name": "Jane",
"job": "developer",
"skills": ["ruby", "rails", "javascript"],
"available": false,
"seeking": "part-time"
}
{
"name": "Jane",
"job": "developer",
"skills": ["ruby", "rails", "javascript"],
"available": "true",
"seeking": "part-time"
}
Hint: true needs to be a boolean and part-time a string so in double quotes.
Explanation: The other options won’t work as well, as demonstrated by this StackOverflow post.
A. They are formatted to fit well on a page.
B. They shrink the report data to fit on a page.
C. They truncate the report data to fit on a single page.
D. They are both printable and shareable.
Explanation: The true statements about paginated reports are: A. They are formatted to fit well on a page. D. They are both printable and shareable. So the correct options are A and D.
Explanation: Encourage open communication within the team and involve them in problem-solving to find a solution that works best for their specific context and helps address the issue of disinterest in certain stories.
json{photo: {width: 1600, height: 900, binaries: { url: 'https://www.example.com/images/34097349843', thumbnail: 'https://www.example.com/images/thumbs/34097349843' }, animated: false, tags: [116, 943, 234, 38793], }}
{"photo": {"width": 1600, "height": 900, "binaries": { "url": "https://www.example.com/images/34097349843", "thumbnail": "https://www.example.com/images/thumbs/34097349843"}, "animated": "false", "tags": [116, 943, 234, 38793]}}
{"photo": {"width": 1600, "height": 900, "binaries": { "url": "https://www.example.com/images/34097349843", "thumbnail": "https://www.example.com/images/thumbs/34097349843"}, "animated": false, "tags": [116, 943, 234, 38793]}}
{"photo": {"width": 1600, "height": 900, "binaries": {"url": "https://www.example.com/images/34097349843", "thumbnail": "https://www.example.com/images/thumbs/34097349843"}, "animated": true, "tags": [116, 943, 234, 38793]}}
{"photo": {"width": "1600", "height": "900", "binaries": { "url": "https://www.example.com/images/34097349843", "thumbnail": "https://www.example.com/images/thumbs/34097349843"}, "animated": "false", "tags": ["116", "943", "234", "38793"]}}
<origin>
element<script>
elementJSON.parse({"first": "Sarah", "last": "Connor"}) ;
{"avengers": ["iron man", "hulk", "thor", "black widow", "ant man", "spider man" ]}
{"avengers": ["iron man", "hulk", "thor", "black widow", "ant man", "spider man"]}
{'avengers': {'iron man', 'hulk', 'thor', 'black widow', 'ant man', 'spider man'}]}
{"avengers": ["iron man", "hulk", "thor", "black widow", "ant man", "spider man"]}
{"avengers": {["iron man", "hulk", "thor", "black widow", "ant man", "spider man" ]}}
Explanation:- JSON-P, or JSON with padding, serves the purpose of overcoming the same-origin policy limitation in web development. The same-origin policy restricts web pages from making AJAX requests to a different domain for security reasons. JSON-P works by wrapping JSON data in a JavaScript function call, allowing data to be retrieved from an external domain as if it were a script. This technique is commonly used for securely fetching data from external APIs, making it a valuable tool for cross-domain data exchange in web applications.
Explanation:- When you have a key in a JSON document that contains special characters, spaces, or hyphens, it is essential to enclose the key in double quotes. JSON requires keys to be represented within double quotes to ensure proper parsing and access in JavaScript. This ensures that JavaScript can correctly interpret keys with special characters or spaces and access their associated values.
{
"host": "Atlanta",
"year": 1996
/_ Centennial Olympics _/
}
{
"host": "Atlanta",
"year": 1996
// Centennial Olympics
}
{
"host": "Atlanta",
"year": 1996,
"comment": "Centennial Olympics"
}
{
"host": "Atlanta",
"year": 1996,
\"Centennial Olympics\"
}
{
"host": "Atlanta",
"year": 1996,
"comment": "\"Centennial Olympics"
}
[
{
"year": 2024
},
{
"location": "unknown"
}
]
"'|=(_)(X 72(_)|\/||\*'"
"|=(_)(X 72(_)|\/||\*"
"|=(_)(X\" \"72(_)|\/||\*"
"\s(_)(X 72(_)|\/||\*"