What is JSON?

What Does JSON Mean

The acronym JSON derived from the expression of the English language JavaScript Object Notation , which translates Notation JavaScript Object . It is a lightweight text format that allows data to be exchanged .

JSON is based on a subset of JavaScript , an imperative, object-oriented, and interpreted programming language that was created by the American Brendan Eich . Anyway, it maintains independence with respect to this language.
In its origins, JSON emerged as an alternative to XML ( eXtensible Markup Language or Extensible Markup Language ), a meta-tagging language. Due to the speed of reading and its smaller size, JSON achieved a fast acceptance.

For humans , reading and writing JSON are fairly straightforward actions. Computers (computers), meanwhile, have no difficulties in generating and interpreting it. This is why it is often used for data transmission in web applications.
This simplicity when reading JSON is also reflected in what it takes to write a parser for this format . Another name that parser receives is parser , and it is a computer program that is developed with the aim of analyzing a chain of symbols taking into account certain rules of a formal grammar.
Ultimately, JSON is a text-based data format that respects JavaScript object syntax . Despite its similarity to this language's object literal syntax , it can be used independently of JavaScript .
A collection of name-value pairs and an ordered list of values are the structures that make up the format. In JSON , each object is an unordered set of name-value pairs. Names, meanwhile, are strings (sequences of zero or more Unicode characters), while values ​​are strings, Booleans, null values, numbers, objects, or arrays. These arrays, on the other hand, are ordered sequences of values ​​or objects of any type, enclosed in square brackets and separated with commas.
A null value is used to indicate, for example, that a variable has not been initialized. It is not the same as the "zero" itself, as if we were to say that "there are zero apples on the table", but rather that "the apple object does not exist, it has not been initialized and the computer cannot process it because it does not know it. ». Booleans are used to represent two values: true and false.

Since other alternatives, such as XML, are not always at a disadvantage compared to JSON, in many cases there is a balance between the differences between the two. One of the issues that worries many developers is the security of data manipulation with JSON, and that is why its most common use occurs in environments with a large data flow between both ends (the client and the server), and where the source of said data is reliable, in addition to not being necessary to process or transform them on the client's computer.
Among the companies that use JSON we have Google, Mozilla and Yahoo !, three industry giants that manipulate an incalculable amount of data every day to serve the needs of their millions of customers. There are those who consider that JSON is an option for those who do not want or cannot use XML; however, the cases in which both are combined in the same application are common.
Regarding the pronunciation of the name JSON, in English it tends to be read like the name Jason , although its creator, Douglas Crockford , assures that the stressed syllable should be the second ("are"). In Spanish there are two tendencies: / yeison /, which is how we pronounce the name Jason , or / jotasón /, reading the name of the letter J and then the syllable "son" normally.

Go up