Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address
Check our LIVE MOCK INTERVIEWS

JSON Interview Questions and Answers

Experienced / Expert level questions & answers

Ques 1. What is the Security and JSON Parser?

Security and JSON Parser to understand by below examples
// Include http://www.json.org/json.js
var myObject = myJSONtext.parseJSON();
eval() can compile and execute any JavaScript program, so there can be security issues (cross-site scripting)
Use eval() when the source can be trusted
When security is a concern - the source cannot be trusted -, it is better to use a JSON parser
A JSON parser will only recognize JSON text and so is much safer
Object to Text Conversion
var myJSONText = myObject.toJSONString();
You can convert JSON object into JSON text
JSON does not support cyclic data structure
Do not give cyclical structures to the JSON stringifier

Is it helpful? Add Comment View Comments
 

Ques 2. What is JSON-RPC and JSON-RPC-Java?

JSON-RPC is a simple remote procedure call protocol similar to XML-RPC although it uses the lightweight JSON format instead of XML
JSON-RPC-Java is a Java implementation of the JSON-RPC protocol

Is it helpful? Add Comment View Comments
 

Ques 3. Why JSON-RPC-Java?

It allows you to transparently call server-side Java code from JavaScript with an included lightweight JSON-RPC JavaScript client.
It is designed to run in a Servlet container such as Tomcat and can be used with J2EE Application servers to allow calling of plain Java or EJB methods from within a JavaScript DHTML web application.

Is it helpful? Add Comment View Comments
 

Ques 4. What are the features of JSON-RPC-Java?

Dynamically call server-side Java methods from JavaScript DHTML web applications. No Page reloading.
Asynchronous communications.
Transparently maps Java objects to JavaScript objects.
Lightweight protocol similar to XML-RPC although much faster.
Leverages J2EE security model with session specific exporting of objects.
Supports Internet Explorer, Mozilla, Firefox, Safari, Opera.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Related differences

JSON vs XML

Related interview subjects

REST API interview questions and answers - Total 52 questions
Unix interview questions and answers - Total 105 questions
SDLC interview questions and answers - Total 75 questions
Apache Kafka interview questions and answers - Total 38 questions
Language in C interview questions and answers - Total 80 questions
ANT interview questions and answers - Total 10 questions
Nature interview questions and answers - Total 20 questions
Ruby On Rails interview questions and answers - Total 74 questions
Business Analyst interview questions and answers - Total 40 questions
HTML interview questions and answers - Total 27 questions
Hadoop interview questions and answers - Total 40 questions
iOS interview questions and answers - Total 52 questions
HR Questions interview questions and answers - Total 49 questions
C++ interview questions and answers - Total 142 questions
Cryptography interview questions and answers - Total 40 questions
JSON interview questions and answers - Total 16 questions
CSS interview questions and answers - Total 74 questions
XML interview questions and answers - Total 25 questions
Ethical Hacking interview questions and answers - Total 40 questions
Android interview questions and answers - Total 14 questions
ChatGPT interview questions and answers - Total 20 questions
Data Structures interview questions and answers - Total 49 questions
Zend Framework interview questions and answers - Total 24 questions
Fashion Designer interview questions and answers - Total 20 questions
©2023 WithoutBook