How can you put comments into your JSON file?
Please select exactly one correct alternative.
Answer
You cannot put comments into JSON files.
What is JSON?
Please select exactly one correct alternative.
Answer
JSON or JavaScript Object Notation, is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is used primarily to transmit data between a server and web application, as an alternative to XML.
What does the abbreviation JSON stand for?
Please select exactly one correct alternative.
Is the code below valid for declaring a JSON array?
var vMyArray = [ { "first" : "HansR", "last" : "ontheWeb" }, { "first" : "John", "last" : "Doe" } ];
Please select exactly one correct alternative.
Is the code below valid for declaring a JSON array?
$scope.vApplicationAreas = [ { "name" : "Business Intelligence" }, { "name" : "Social" }, { "name" : "Samenwerken en kennis delen", [ { "name" : "Document Management" }, { "name" : "Information publishing" } ]}, { "name" : "Productivity", [ { "name" : "Mail" }, { "name" : "Agenda" }, { "name" : "Search" }, { "name" : "Samengestelde toepassingen" } ]}, ];
Please select exactly one correct alternative.
Answer
In the code fragment above, we've forgotten to give the arrays a name. Please see the correct code below:
$scope.vApplicationAreas = [ { "name" : "Business Intelligence" }, { "name" : "Social" }, { "name" : "Samenwerken en kennis delen", "children" : [ { "name" : "Document Management" }, { "name" : "Information publishing" } ]}, { "name" : "Productivity", "children" : [ { "name" : "Mail" }, { "name" : "Agenda" }, { "name" : "Search" }, { "name" : "Samengestelde toepassingen" } ]}, ];
Geen opmerkingen:
Een reactie posten