+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

JSON Interview Questions and Answers

What is JSON?

JSON full form is JavaScript Object Notation. JSON is a lightweight text-based open standard designed for human-readable data interchange. It is derived from the JavaScript programming language for representing simple data structures and associative arrays, called objects. And JSON is language-independent, with parsers available for virtually every programming language. Uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python,php
The JSON format is often used for serializing and transmitting structured data over a network connection. When third party data interchane(REST Services) then JSON may used there LIKE SHOP .It is primarily used to transmit data between a server and web application, serving as an alternative to XML.

Who is the Father or creater of JSON ?

Douglas Crockford called as the Father of JSON

What is the file extension of JSON?

The JSON filename extension is .json.

Why use JSON over XML?

Lighter and faster than XML as on-the-wire data format

  • JSON objects are typed while XML data is typeless
  • JSON types: string, number, array, boolean,
  • XML data are all string
  • Native data form for JavaScript code
  • Data is readily accessible as JSON objects in your JavaScript
    code vs. XML data needed to be parsed and assigned to variables through tedious DOM APIs
  • Retrieving values is as easy as reading from an object property in your JavaScript code
Explain JSON Structures.

A collection of name/value pairs

  • In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array
  • An ordered list of values
  • In most languages, this is realized as an array, vector, list, or sequence
  • These are universal data structures supported
  • A JSON object is an unordered set of name/value pairs
  • A JSON object begins with { (left brace) and ends with } (right brace)
  • Each name is followed by : (colon) and the name/value pairs are separated by , (comma)
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.