Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is json and what is json used for?


Asked by Elliott Choi on Dec 06, 2021 JSON



JSON stands for JavaScript Object Notation . JSON is a lightweight format for storing and transporting data. JSON is often used when data is sent from a server to a web page. JSON is "self-describing" and easy to understand
Likewise,
JSON is just a way to represent data objects when transmitting them across the Internet. It’s an alternative to XML that’s native to JavaScript, which is one reason why it’s so popular and widespread. The most common use for JSON is pulling data from web servers on demand.
Keeping this in consideration, JSON is an abbreviation for J ava S cript O bject N otation. The main purpose of JSON data was to provide data transfer between server and web applications for JavaScript but today's JSON is the most popular data interchange format. JSON offers two advantages to us. These are; light-weight text based format easily readable by humans.
Thereof,
A JSON file is a file that stores simple data structures and objects in JavaScript Object Notation (JSON) format, which is a standard data interchange format. It is primarily used for transmitting data between a web application and a server. JSON files are lightweight, text-based, human-readable,...
In addition,
Another major drawback of JSON is that it can be quite dangerous if used with untrusted services or untrusted browsers, because a JSON service returns a JSON response wrapped in a function call, which will be executed by the browser if it will be used with untrusted browser it can be hacked, this makes the hosting Web Application Vulnerable to a variety of attacks.