JSON Interview Cheatsheet

We have been using and hearing a lot about JSON, but many of us don't really know what is JSON, below is a Thread about Json and Interview Questions!

🧵Thread🧵

#100DaysOfCode #DEVCommunity

1) Mention what is JSON?

JSON is a simple data exchange format. JSON means JavaScript Object Notation; it is language and platform-independent.

#100DaysOfCode
2) Explain what is JSON objects?

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,.

#100DaysOfCode
3) Explain how to transform JSON text to a JavaScript object?

One of the common use of JSON is to collect JSON data from a web server as a file or HTTP request and convert the JSON data to JavaScript, and then it avails the data in a web page.

#100DaysOfCode
4) Mention what is the rule for JSON syntax rules? Give an example of a JSON object?

JSON syntax is a set of the JavaScript object notation syntax.

Data is in name/value pairs
Data is separated by comma
Curly brackets hold objects
Square bracket holds arrays

#100DaysOfCode
5) Why must one use JSON over XML?

It is faster and lighter than XML as on the wire data format
XML data is typeless while JSON objects are typed
JSON types: Number, Array, Boolean, String
XML data are all string

#100DaysOfCode
6)What is JSON-RPC & JSON Parser

JSON RPC: It is a simple remote procedure call protocol same as XML-RPC it uses the lightweight JSON format

JSON Parser: JSON parser is used to parse the JSON data into objects to use its value.

#100DaysOfCode
7) Mention what is the file extension of JSON?

File extension of JSON is .json

#100DaysOfCode
8) Mention which function is used to convert a JSON text into an object?

To convert JSON text into an object “eval” function is used.

#100DaysOfCode
9) Mention what are the data types supported by JSON?

Data types supported by JSON includes

Number
String
Boolean
Array
Object
Null

#100DaysOfCode
10) Mention what is the role of JSON.stringify?

JSON.stringify() converts an object into a JSON text and saves that JSON text in a string.

#100DaysOfCode
11) Show how to parse JSON in JQuery?

To parse JSON in JQuery, we will see the example

var JSON = ‘{“name”: “Guru 99”, “Description “: “Learn PHP Interactively with PHP Beginner Tutorials}

obj = $.parseJSON(json);

//alert(https://t.co/Y7zz0x7YXk);

#100DaysOfCode
12) Mention what is the function used for encoding JSON in PHP?

For encoding JSON in PHP, json_encode () function is used. This function returns the JSON representation of a value on success or false on failure.

#100DaysOfCode
13) Explain how you can convert a string into a JSON Array?

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.

#100DaysOfCode
14) Mention what are the JSON files?

JSON file type for JSON files is “.json”
The MIME type for JSON text is “application/JSON”

#100DaysOfCode
15) List out the uses of JSON?

Uses of JSON includes

When writing an application based on JavaScript it uses JSON, which includes browser extension and websites
JSON is used for transmitting and serializing structured data over a network connection

#100DaysOfCode
16) Mention what are the drawbacks of JSON?

Drawbacks of JSON are

It does not contain a type definition
It lacks some sort of DTD

#100DaysOfCode
17) Mention what is JSONP?

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.
18) Mention what is the MIME type of JSON?

MIME type for JSON text is “application/json”

#100DaysOfCode
19)What is the difference bw JSON & JSONP

JSON is a simple data format used for communication medium between different systems

JSONP is a methodology for using that format with cross-domain ajax requests while not being affected by the same-origin policy issue

#100DaysOfCode
You Can also follow me on Github:

https://t.co/ZS7d35gdwJ

To receive a Weekly Newsletter:
https://t.co/M83s9WAK4H

You May Also Like

1/ Some initial thoughts on personal moats:

Like company moats, your personal moat should be a competitive advantage that is not only durable—it should also compound over time.

Characteristics of a personal moat below:


2/ Like a company moat, you want to build career capital while you sleep.

As Andrew Chen noted:


3/ You don’t want to build a competitive advantage that is fleeting or that will get commoditized

Things that might get commoditized over time (some longer than


4/ Before the arrival of recorded music, what used to be scarce was the actual music itself — required an in-person artist.

After recorded music, the music itself became abundant and what became scarce was curation, distribution, and self space.

5/ Similarly, in careers, what used to be (more) scarce were things like ideas, money, and exclusive relationships.

In the internet economy, what has become scarce are things like specific knowledge, rare & valuable skills, and great reputations.
#ज्योतिष_विज्ञान #मंत्र_विज्ञान

ज्योतिषाचार्य अक्सर ग्रहों के दुष्प्रभाव के समाधान के लिए मंत्र जप, अनुष्ठान इत्यादि बताते हैं।

व्यक्ति के जन्म के समय ग्रहों की स्थिति ही उसकी कुंडली बन जाती है जैसे कि फ़ोटो खींच लिया हो और एडिट करना सम्भव नही है। इसे ही "लग्न" कुंडली कहते हैं।


लग्न के समय ग्रहों की इस स्थिति से ही जीवन भर आपको किस ग्रह की ऊर्जा कैसे प्रभावित करेगी का निर्धारिण होता है। साथ साथ दशाएँ, गोचर इत्यादि चलते हैं पर लग्न कुंडली का रोल सबसे महत्वपूर्ण है।


पृथ्वी से अरबों खरबों दूर ये ग्रह अपनी ऊर्जा से पृथ्वी/व्यक्ति को प्रभावित करते हैं जैसे हमारे सबसे निकट ग्रह चंद्रमा जोकि जल का कारक है पृथ्वी और शरीर के जलतत्व पर पूर्ण प्रभाव रखता है।
पूर्णिमा में उछाल मारता समुद्र का जल इसकी ऊर्जा के प्रभाव को दिखाता है।


अमावस्या में ऊर्जा का स्तर कम होने पर वही समुद्र शांत होकर पीछे चला जाता है। जिसे ज्वार-भाटा कहते हैं। इसी तरह अन्य ग्रहों की ऊर्जा के प्रभाव होते हैं जिन्हें यहां समझाना संभव नहीं।
चंद्रमा की ये ऊर्जा शरीर को (अगर खराब है) water retention, बैचेनी, नींद न आना आदि लक्षण दिखाती है


मंत्र क्या हैं-
मंत्र इन ऊर्जाओं के सटीक प्रयोग करने के पासवर्ड हैं। जिनके जप से संबंधित ग्रह की ऊर्जा को जातक की ऊर्जा से कनेक्ट करके उन ग्रहों के दुष्प्रभाव को कम किया और शुभ प्रभाव को बढ़ाया जाता है।
So the cryptocurrency industry has basically two products, one which is relatively benign and doesn't have product market fit, and one which is malignant and does. The industry has a weird superposition of understanding this fact and (strategically?) not understanding it.


The benign product is sovereign programmable money, which is historically a niche interest of folks with a relatively clustered set of beliefs about the state, the literary merit of Snow Crash, and the utility of gold to the modern economy.

This product has narrow appeal and, accordingly, is worth about as much as everything else on a 486 sitting in someone's basement is worth.

The other product is investment scams, which have approximately the best product market fit of anything produced by humans. In no age, in no country, in no city, at no level of sophistication do people consistently say "Actually I would prefer not to get money for nothing."

This product needs the exchanges like they need oxygen, because the value of it is directly tied to having payment rails to move real currency into the ecosystem and some jurisdictional and regulatory legerdemain to stay one step ahead of the banhammer.