Which code should you insert at line 03?

You are creating a console application named Appl.
App1 retrieves data from the Internet by using JavaScript Object Notation (JSON).
You are developing the following code segment (line numbers are included for reference only):

You need to ensure that the code validates the JSON string.
Which code should you insert at line 03?

You are creating a console application named Appl.
App1 retrieves data from the Internet by using JavaScript Object Notation (JSON).
You are developing the following code segment (line numbers are included for reference only):

You need to ensure that the code validates the JSON string.
Which code should you insert at line 03?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
The JavaScriptSerializer Class Provides serialization and deserialization functionality for
AJAX-enabled applications.
The JavaScriptSerializer class is used internally by the asynchronous communication layer
to serialize and deserialize the data that is passed between the browser and the Web server.
You cannot access that instance of the serializer. However, this class exposes a public API.
Therefore, you can use the class when you want to work with JavaScript Object Notation
(JSON) in managed code.



Leave a Reply 5

Your email address will not be published. Required fields are marked *


delfigaro

delfigaro

correct answer id D!
NetDataContractSerializer works with XML not JSON!

sandip

sandip

Correct answer is – D (delfigaro is right)

Farhat

Farhat

correct answer is D.

Alisher

Alisher

D is corrrect