{
"iq":[{"id":"1",
"q":"what is JSON?",
"answer":"JSON is \"JavaScript Object Notation\", primarily used for client-server or server-server communication. Its a much lighter and readable alternative to XML. JSON is language independent and is easily parse-able in all programming languages."
},
{"id":"2",
"q":"Explain what is JSON objects?",
"answer":"An object can be defined as an unordered set of name/value pairs. An object in JSON starts with {left brace} and finish or ends with {right brace}. Every name is followed by: (colon) and the name/value pairs are parted by, (comma)."
},
{"id":"3",
"q":"What is the role of JSON.stringify ?",
"answer":"JSON.stringify() turns an object into a JSON text and stores that JSON text in a string.\n\nSo If we stringfy above notation , it will become\n\n{\"name\":\"xyz\",\"gender\":\"male\";\"age\":30}"
},
{"id":"4",
"q":"Which function is used to convert a JSON text into an object ?",
"answer":"eval"
},
{"id":"5",
"q":"Which data types are supported by JSON ?",
"answer":"Number\n\nString\n\nBoolean\n\nArray\n\nObject\n\nnull"
},
{"id":"6",
"q":"What are the benefits of JSON over XML ?",
"answer":"Lighter and faster than XML as on-the-wire data format\n\nObject Representation - Information is presented in object notations and hence better understandable. Easy to parse and conversion to objects for information consumption.\n\nSupport multiple data types - JSON supports string, number, array, boolean whereas XML data are all string."
},
{"id":"7",
"q":"Which markup languages can be used in restful web services ?",
"answer":"XML and JSON ( Javascript Object Notation )."
},
{"id":"8",
"q":"Why must one use JSON over XML?",
"answer":"It is faster and lighter than XML as on the wire data format\n\nXML data is typeless while JSON objects are typed\n\nJSON types: Number, Array, Boolean, String\n\nXML data are all string\n\nData is readily available as JSON object is in your JavaScript\n\nFetching values is as simple as reading from an object property in your JavaScript code"
},
{"id":"9",
"q":" What is file extension of JSON?",
"answer":".json"
},
{"id":"10",
"q":"What is JSON Parser?",
"answer":"JSON Parser is used to parse the JSON data into object to use its value. JSON can be parse by javaScript, jQuery and PHP. "
},
{"id":"11",
"q":"What is JSON-RPC?",
"answer":"Remote Procedure call protocol with use of JSON. It is similar to XML-RPC only difference, It use JSON instead of XML. "
},
{"id":"12",
"q":"What is JSON-RPC-Java?",
"answer":"JSON-RPC-Java is a Java implementation of the JSON-RPC protocol."
},
{"id":"13",
"q":"Mention how to convert JSON text to a JavaScript object?",
"answer":"Most commonly use of JSON is to collect JSON data from a web server as file or HTTP (Hyper text Markup Language) and convert the JSON data to a JavaScript and then it avails the data in a web page..."
},
{"id":"14",
"q":"What is the rule for JSON syntax rules? Explain with an example of JSON object?",
"answer":"The JSON syntax is a set of the JavaScript object notation syntax are:\n\nThe curly brackets hold objects\n\nA data is in name and value pairs\n\nThe square bracket holds arrays\n\nA data is separated by comma"
},
{"id":"15",
"q":"Mention which function is used to convert a JSON text into an object?",
"answer":"An “eval” function is used to convert JSON text into an object."
},
{"id":"16",
"q":"Define how to parse JSON in JQuery?",
"answer":"To parse JSON JQuery, we will see this code?\n\nvar json = ‘{“name”: Trending Developers, “Description “: “Learn Java, Play Framework, HTML 5 etc. }\n\nobj = $.parseJSON(json);"
},
{"id":"17",
"q":"Mention which function is used for encoding JSON?",
"answer":"To encoding JSON in PHP, json_encode() function is used. Which function returns the JSON representation of a value on success or false on failure.."
},
{"id":"18",
"q":"Explain which technique to convert a string into a JSON Array?",
"answer":"To convert a string into a JSON array, you want to make a JSONObject object for each of your objects, and add those to your JSON array..."
},
{"id":"19",
"q":" How to create json from php array?",
"answer":" $array = array('name'=>'PHP Tutorial','Description'=>'Web technology experts notes');\n\necho json_encode($array);."
},
{"id":"20",
"q":" How Convert json object to json string in jquery? ",
"answer":"var json = '{\"name\":\"json interview\",\"Description\":\"Web technology experts questions\"}'\n\nJSON.stringify(json)"
},
{
"id":"21",
"q":"How to convert json object to json string in javaScript?",
"answer":" var json = '{\"name\":\"json Tutorial\",\"Description\":\"Web technology experts questions\"}'\n\nJSON.stringify(json)."
},
{"id":"22",
"q":" Mention what are the drawbacks of JSON? ",
"answer":"Drawbacks of json are\n\nIt does not contain type definition\n\nIt lacks some sort of DTD"
},
{"id":"23",
"q":"Mention what is JSONP?",
"answer":"JSONP stands for JSON with padding. It is a method used to bypass the cross-domain policies in web browsers. In other words, JSONP is the simple way to deal with browser restrictions when sending JSON responses from different domains from the client."
},{"id":"24",
"q":"Mention what is the difference between JSON and JSONP?",
"answer":"JSON: JSON is a simple data format used for communication medium between different systems\n\nJSONP: It is a methodology for using that format with cross domain ajax requests while not being affected by same origin policy issue."
},
{"id":"25",
"q":" Explain how you can convert a string into a JSON Array?",
"answer":"To convert a string into a JSON array, you need to create a JSONObject object for each of your objects, and add those to your JSON array.."
},
{"id":"26",
"q":"How to get JSON response in Ajax?",
"answer":"$.ajax({\n\ndataType: \"json\",\n\nurl: '/ajax/url',\n\ndata: 'name=json-tutorial-json',\n\nsuccess: function(data){\n\n}\n\n});"
},
{"id":"27",
"q":" Mention what are the JSON files?",
"answer":"JSON file type for JSON files is “.json”\n\nThe MIME type for JSON text is “application/json”."
},
{"id":"28",
"q":"Show how to parse JSON in JQuery?",
"answer":"To parse JSON in JQuery, we will see the example\n\nvar json = ‘{“name”: “Guru 99”, “Description “: “Learn json Interactively with PHP Beginner Tutorials}\n\nobj = $.parseJSON(json);"
},{"id":"29",
"q":"What is the function used for encoding and decoding JSON in PHP.?",
"answer":"For Encode : json_encode()\n\nFor Decode : json_decode() ."
},
{"id":"30",
"q":"What is BSON?",
"answer":"BSON is the superset of JSON, which used by MongoDB.BSON supports the embedding of documents and arrays within other documents and arrays.\n\nBSON also contains extensions that allow representation of data types that are not part of the JSON spec."
},
{"id":"31",
"q":" How do you decode a JSON string? ",
"answer":"Use JSON.parse method to decode a JSON string into Javascript object"
},
{"id":"32",
"q":"How to delete an index from Json Obj?",
"answer":"Deleting an Element from JSON Obj var exjson = {'key':'value'}; \n\ndelete exjson['key'];."
}
]
}
"iq":[{"id":"1",
"q":"what is JSON?",
"answer":"JSON is \"JavaScript Object Notation\", primarily used for client-server or server-server communication. Its a much lighter and readable alternative to XML. JSON is language independent and is easily parse-able in all programming languages."
},
{"id":"2",
"q":"Explain what is JSON objects?",
"answer":"An object can be defined as an unordered set of name/value pairs. An object in JSON starts with {left brace} and finish or ends with {right brace}. Every name is followed by: (colon) and the name/value pairs are parted by, (comma)."
},
{"id":"3",
"q":"What is the role of JSON.stringify ?",
"answer":"JSON.stringify() turns an object into a JSON text and stores that JSON text in a string.\n\nSo If we stringfy above notation , it will become\n\n{\"name\":\"xyz\",\"gender\":\"male\";\"age\":30}"
},
{"id":"4",
"q":"Which function is used to convert a JSON text into an object ?",
"answer":"eval"
},
{"id":"5",
"q":"Which data types are supported by JSON ?",
"answer":"Number\n\nString\n\nBoolean\n\nArray\n\nObject\n\nnull"
},
{"id":"6",
"q":"What are the benefits of JSON over XML ?",
"answer":"Lighter and faster than XML as on-the-wire data format\n\nObject Representation - Information is presented in object notations and hence better understandable. Easy to parse and conversion to objects for information consumption.\n\nSupport multiple data types - JSON supports string, number, array, boolean whereas XML data are all string."
},
{"id":"7",
"q":"Which markup languages can be used in restful web services ?",
"answer":"XML and JSON ( Javascript Object Notation )."
},
{"id":"8",
"q":"Why must one use JSON over XML?",
"answer":"It is faster and lighter than XML as on the wire data format\n\nXML data is typeless while JSON objects are typed\n\nJSON types: Number, Array, Boolean, String\n\nXML data are all string\n\nData is readily available as JSON object is in your JavaScript\n\nFetching values is as simple as reading from an object property in your JavaScript code"
},
{"id":"9",
"q":" What is file extension of JSON?",
"answer":".json"
},
{"id":"10",
"q":"What is JSON Parser?",
"answer":"JSON Parser is used to parse the JSON data into object to use its value. JSON can be parse by javaScript, jQuery and PHP. "
},
{"id":"11",
"q":"What is JSON-RPC?",
"answer":"Remote Procedure call protocol with use of JSON. It is similar to XML-RPC only difference, It use JSON instead of XML. "
},
{"id":"12",
"q":"What is JSON-RPC-Java?",
"answer":"JSON-RPC-Java is a Java implementation of the JSON-RPC protocol."
},
{"id":"13",
"q":"Mention how to convert JSON text to a JavaScript object?",
"answer":"Most commonly use of JSON is to collect JSON data from a web server as file or HTTP (Hyper text Markup Language) and convert the JSON data to a JavaScript and then it avails the data in a web page..."
},
{"id":"14",
"q":"What is the rule for JSON syntax rules? Explain with an example of JSON object?",
"answer":"The JSON syntax is a set of the JavaScript object notation syntax are:\n\nThe curly brackets hold objects\n\nA data is in name and value pairs\n\nThe square bracket holds arrays\n\nA data is separated by comma"
},
{"id":"15",
"q":"Mention which function is used to convert a JSON text into an object?",
"answer":"An “eval” function is used to convert JSON text into an object."
},
{"id":"16",
"q":"Define how to parse JSON in JQuery?",
"answer":"To parse JSON JQuery, we will see this code?\n\nvar json = ‘{“name”: Trending Developers, “Description “: “Learn Java, Play Framework, HTML 5 etc. }\n\nobj = $.parseJSON(json);"
},
{"id":"17",
"q":"Mention which function is used for encoding JSON?",
"answer":"To encoding JSON in PHP, json_encode() function is used. Which function returns the JSON representation of a value on success or false on failure.."
},
{"id":"18",
"q":"Explain which technique to convert a string into a JSON Array?",
"answer":"To convert a string into a JSON array, you want to make a JSONObject object for each of your objects, and add those to your JSON array..."
},
{"id":"19",
"q":" How to create json from php array?",
"answer":" $array = array('name'=>'PHP Tutorial','Description'=>'Web technology experts notes');\n\necho json_encode($array);."
},
{"id":"20",
"q":" How Convert json object to json string in jquery? ",
"answer":"var json = '{\"name\":\"json interview\",\"Description\":\"Web technology experts questions\"}'\n\nJSON.stringify(json)"
},
{
"id":"21",
"q":"How to convert json object to json string in javaScript?",
"answer":" var json = '{\"name\":\"json Tutorial\",\"Description\":\"Web technology experts questions\"}'\n\nJSON.stringify(json)."
},
{"id":"22",
"q":" Mention what are the drawbacks of JSON? ",
"answer":"Drawbacks of json are\n\nIt does not contain type definition\n\nIt lacks some sort of DTD"
},
{"id":"23",
"q":"Mention what is JSONP?",
"answer":"JSONP stands for JSON with padding. It is a method used to bypass the cross-domain policies in web browsers. In other words, JSONP is the simple way to deal with browser restrictions when sending JSON responses from different domains from the client."
},{"id":"24",
"q":"Mention what is the difference between JSON and JSONP?",
"answer":"JSON: JSON is a simple data format used for communication medium between different systems\n\nJSONP: It is a methodology for using that format with cross domain ajax requests while not being affected by same origin policy issue."
},
{"id":"25",
"q":" Explain how you can convert a string into a JSON Array?",
"answer":"To convert a string into a JSON array, you need to create a JSONObject object for each of your objects, and add those to your JSON array.."
},
{"id":"26",
"q":"How to get JSON response in Ajax?",
"answer":"$.ajax({\n\ndataType: \"json\",\n\nurl: '/ajax/url',\n\ndata: 'name=json-tutorial-json',\n\nsuccess: function(data){\n\n}\n\n});"
},
{"id":"27",
"q":" Mention what are the JSON files?",
"answer":"JSON file type for JSON files is “.json”\n\nThe MIME type for JSON text is “application/json”."
},
{"id":"28",
"q":"Show how to parse JSON in JQuery?",
"answer":"To parse JSON in JQuery, we will see the example\n\nvar json = ‘{“name”: “Guru 99”, “Description “: “Learn json Interactively with PHP Beginner Tutorials}\n\nobj = $.parseJSON(json);"
},{"id":"29",
"q":"What is the function used for encoding and decoding JSON in PHP.?",
"answer":"For Encode : json_encode()\n\nFor Decode : json_decode() ."
},
{"id":"30",
"q":"What is BSON?",
"answer":"BSON is the superset of JSON, which used by MongoDB.BSON supports the embedding of documents and arrays within other documents and arrays.\n\nBSON also contains extensions that allow representation of data types that are not part of the JSON spec."
},
{"id":"31",
"q":" How do you decode a JSON string? ",
"answer":"Use JSON.parse method to decode a JSON string into Javascript object"
},
{"id":"32",
"q":"How to delete an index from Json Obj?",
"answer":"Deleting an Element from JSON Obj var exjson = {'key':'value'}; \n\ndelete exjson['key'];."
}
]
}