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
Get step-by-step solutions from verified subject matter experts
