How does JSON wire protocol work?

SeleniumAutomation TestingTesting Tools

A24 JSON Wire protocol is the protocol in which is used when the web driver communicates with the browser. The working of the JSON is as below −

  • In a server-client architecture, it is necessary that the client and server should be in sync and are able to receive and send the request and response.

  • As the name suggests JSON(JavaScript Object Notation) is used to represent objects with a complex data structures. JSON wire protocol acts as a mediator between client libraries and Web Drivers. It sends transfers data between the client and the server on the web.


  • The server doesn’t understand the programming language in which the program is created, it just understands the protocol, and here comes the role of JSON wire Protocol.

  • It uses the process of serialization (convert Object’s data to JSON Format) and de-serialization (convert JSON format to object) just like REST web services.

Note − JSON Wire Protocol is obsolete now and no longer used.

raja
Published on 04-Sep-2019 11:13:04
Advertisements