JavaScript Object Notation

Why Trust Techopedia

What Does JavaScript Object Notation Mean?

JavaScript Object Notation (JSON) is an open standard data exchange format based on a JavaScript syntax subset. JSON is text-based, lightweight, and generally considered easily readable/writeable.

Advertisements

Although closely connected to JavaScript, JSON is language-independent. Though independent, JSON uses conventions similar to other languages (e.g., C, C++, Java, Perl and Python), making JSON an ideal data-exchange language.

JSON characteristics include the following:

  • Flexibility, allowing the programmer to define keys.
  • Less overhead, as content is mostly data.
  • Portable data.
  • Non-proprietary.
  • Common and convenient format for Web services.

Commonly utilized in Web application development, JSON may be used as a data format for any application where information is stored as text.

Techopedia Explains JavaScript Object Notation

JSON is preferred by some over XML as a data exchange format because it is less verbose, works quickly, reduces data size and simplifies document processing. It is used extensively in web development, especially because it seamlessly transfers information between potentially incompatible technologies. For example, it could involve a Java application running on a UNIX box or a C# application running on Windows.

Certain precautions are advised as JSON is prone to security issues derived from JavaScript’s interpreter and object literals, which dynamically execute JSON text as JavaScript. In other words, JSON is vulnerable to JavaScript insertion attackers, who can hack and extract system/Web server content and transmitted application objects. JSON security-enhancing techniques do exist and can resolve such issues. Thus, before implementing JSON, developers should continually be aware of all security loopholes and possible solutions.

Advertisements

Related Terms

Margaret Rouse
Editor

Margaret jest nagradzaną technical writerką, nauczycielką i wykładowczynią. Jest znana z tego, że potrafi w prostych słowach pzybliżyć złożone pojęcia techniczne słuchaczom ze świata biznesu. Od dwudziestu lat jej definicje pojęć z dziedziny IT są publikowane przez Que w encyklopedii terminów technologicznych, a także cytowane w artykułach ukazujących się w New York Times, w magazynie Time, USA Today, ZDNet, a także w magazynach PC i Discovery. Margaret dołączyła do zespołu Techopedii w roku 2011. Margaret lubi pomagać znaleźć wspólny język specjalistom ze świata biznesu i IT. W swojej pracy, jak sama mówi, buduje mosty między tymi dwiema domenami, w ten…