Question: IN JAVASCRIPT A Valid JSON Which of the following syntaxes is (are) a valid JSON? ( Note: More than one option may contain a valid

IN JAVASCRIPT

A Valid JSON

Which of the following syntaxes is (are) a valid JSON?

(Note: More than one option may contain a valid JSON.)

A. { "id": "101", "title": "The Lord of the Rings", "pages" : 9250, "isAvailable" : "true", "author" : { "name" : "J.R.R.Tolkien", "nationality" : "British" } } 

B. { "id": "101", "title": "The Lord of the Rings", "pages" : 9250, "isAvailable" : true, "author" : [301, "J.R.R.Tolkien", True] } 

C. [ 101, "The Lord of the Rings", "9250", true, { "name" : "J.R.R.Tolkien" "nationality" : "British" } ] 

D.["101", name, 9250, true] 

E. { "id": 101, "title": "The Lord of the Rings", "pages": 9250, "isAvailable": true, "author": function() { return "J.R.R.Tolkien" } } 

F. [ "101", "The Lord of the Rings", "9250", "true", { "name" : "J.R.R.Tolkien", "nationality" : "British" } ]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!