0% found this document useful (0 votes)
106 views2 pages

Json

Answers

Uploaded by

Shailesh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views2 pages

Json

Answers

Uploaded by

Shailesh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

JSON

----------
What is/are the correct statements about JSON? - all
True or False: JSON objects are typed while XML data is typeless. - true
Who is the Father of JSON? - Douglas Crockford
True or False: Objects can contain multiple name/values pairs. - true
True or False: Data can be readily accessible using JSON objects. - true
What is the standard MIME type for JSON? - application/json
----------------------
While receiving data from any web server, the data is always _ - String
True or False: JSON is now being supported by almost all Programming languages. -
true
JSON objects is/are _ - all
Which would be better option to consider in a environment when you have big JSON
file ? - JSON simple (regular)
Find the correct JSON code: - {
"students": [
{ "firstName":"Ali" , "lastName":"Khan" },
{ "firstName":"John" , "lastName":"Sena" },
{ "firstName":"Kate" , "lastName":"Winslet" }
]
}
FasterXML�s Jackson can handle both JSON/non-JSON encodings. - true
Which would be better option to consider in a environment with distributed set-up
with multiple small JSON files ? - GSON
What are the true options applicable for JSON Parser? - Used to convert a JSON text
to a JavaScript object.
Which would be better option to consider in a environment when you have big JSON
file ? - Jackson
Which API for JSON processing can consume/produce streaming JSON text? - JSONP
What is the correct way to write a JSON array? - var colors = ["red", "green",
"blue"]
True or False: JSON is not a data format that can be used for asynchronous
browser/server communication. - False
JavaScript function JSON.parse() is to convert text into string. - false
True or False: In JSON syntax, square brackets can't holds arrays. - false
Looping an Array is possible in JSON. - true
What is JSON RPC? - JSON-RPC is a simple remote procedure call protocol that uses
the lightweight JSON format instead of XML.

***Not sure about the below answers, please cross check***


Why JSON over XML? - Retrieving values is as easy as reading from an object
property
What is the true option applicable for JSON? - JSON object begins with { (left
brace) and ends with } (right brace)
JSON can support sending, reading, and receiving texts available in any real-world
business scenario. - true
Apart from the regular JSON, we have other versions of JSON in use such as - JSONP
True or False: In JSON Syntax, each name is followed by : (colon) and the
name/value pairs are separated by ; (semicolon). - False
GSON can convert any Objects into JSON and vice versa. - False
JavaScript function JSON.stringify() is to convert JSON Object into a string. -
true
Parse the data with JSON.parse() and the data becomes a JavaScript object. - true
JSON.parse() function was developed as a safer alternative to _ - eval()
What are true about JSON Arrays? - { (square bracket) } is used to represent array

Which is true about JSON Syntax? - An Object (in square brackets) A string (in
multiple quotes) ***not correct***
Functions added undef Native JSON is - stringify() and parse() , parse() ***not
correct***
Which would be better option to consider in a environment when you have both big
JSON file & multiple small JSON files to deal with? - GSON ** Not correct***
True or False: In JSON Syntax, each name is followed by : (colon) and the
name/value pairs are separated by ; (semicolon).
GSON can convert any Objects into JSON and vice versa.

You might also like