
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 188 Articles for JSON

814 Views
Node.js provides powerful tools for working with files, including reading and writing JSON files. JSON (JavaScript Object Notation) is widely used for storing and exchanging data in applications. This article walks you through reading and writing JSON files in Node.js with examples. Approaches to Read JSON file Using fs.readFileSync (Synchronous) Using fs.readFile (Asynchronous) JSON File data.json { "name": "PankajBind", "age": 21, "skills": ["JavaScript", "Node.js", "React"] } Using fs.readFileSync (Synchronous) The fs module in Node.js provides methods to interact with the file ... Read More

386 Views
JavaScript has a class mechanism, primarily a blueprint for defining objects, including their properties and methods. Data must always be serialized to either store it, transmit it through a network or be used as part of the response to an API call. In this article, we will demonstrate how this can be done using JavaScript by providing examples and outputs as necessary. Approaches Convert JavaScript Class to JSON Using JSON.stringify() Method Adding a Custom toJSON() Method Using Object.assign() Method Using Custom Serializer ... Read More

789 Views
Base64 encoding is widely used as an ASCII string to represent binary data. However, converting Base64 strings to JSON is a common data exchange specification. This is because JSON is a human-readable format and is easily converted into JavaScript. In this article, we will explore methods to convert Base64 string to JSON string by giving examples and output for each. What is Base64? Base64 is a type of encoding scheme that represents binary data in an ASCII string. It generally gets used to encode an image, file, or other non-textual data to transfer safely across a text-based protocol like ... Read More

2K+ Views
It is often necessary to change JSON data into Excel sheet, especially when exporting and reporting is concerned, in various web applications. Data is presented and analyzed with the help of the widely spread Excel files, and the transformation of the JSON data to excel enables the users to do analysis and manage data seamlessly. This paper looks at different ways of converting JSON data to Excel files in JavaScript environment through the use of libraries and through other manual means. Approaches to Convert JSON to Excel in JavaScript Using the SheetJS (xlsx) library ... Read More

1K+ Views
Working with web applications often requires parsing some HTML tables to extract the content in the appropriate format, most often in JSON format which is better for storage, transfer, or API communication. One of the most popular formats used for data exchange is JSON, mainly due to its lightweight nature and ease of integration on the front and back end. This article highlights different methods for making a JSON representation of an HTML table in JavaScript. Approaches to Convert HTML Table to JSON Using JavaScript’s querySelector and loops. Using forEach ... Read More

1K+ Views
CSV (comma-separated values) file formats are perfect for many applications that store tabular data while JSON (JavaScript Object Notation) is popular among web applications. Because it is understandable and cooperating with javascript is a lot of work transforming the data from CSV into JSON format. specifically, for the case of working with data within JavaScript, different techniques are sought in this article. Converting CSV files to JSON format in JavaScript with syntax, explanation of some examples, and the code. Understanding CSV and JSON Formats CSV: Saving data in rows separated by commas made CSV ... Read More

1K+ Views
Some popular formats for data exchange are XML (eXtensible Markup Language) and JSON (JavaScript Object Notation). Tags are used to structure XML, while JSON is a more condensed key-value format. In JavaScript apps, this is common. Converting XML data to JSON could occasionally be required in order to facilitate or alter data in JavaScript. Several techniques for converting XML to JSON using JavaScript are examined in this article. from developing unique JavaScript frameworks and solutions to employing DOM analysis. Understanding XML and JSON XML Example Pankaj 20 ... Read More

189 Views
YAML and JSON are serialization formats which are a mechanism for the exchange of human-readable data. The data is formatted in such a way that it can be easily exchanged between applications. Both methods use key-value pairs for data exchange. In this article, we will discuss the difference between YAML and JSON. What is YAML? YAML is a data interpretation language which can represent human-readable data. It is a lightweight language and consists of complicated features to format the data which could be easily read by humans. YAML acts as a superset of JSON so the data available in JSON ... Read More

735 Views
Overview An object in JavaScript is a set of the data that is contained inside the curly braces in the key value pair form. An object in JavaScript is created by using the curly braces and defining the set of data inside it. A nested JSON object is also a set of a key value pair but in nested the key contains a set of objects inherited in it. We can use the two formats of accessing the value in the JSON objects: the first method is by directly accessing the value and the second method is by using the ... Read More

553 Views
Inventory Management with JSON : Introduction Any firm that handles and tracks items or products needs to have effective inventory management. In order to guarantee that there is a sufficient supply of goods for clients and avoid overstocking or stockouts, it entails the process of monitoring and controlling the input and outflow of commodities. We'll look at using JSON for inventory management in Python in this tutorial. Inventory Management with JSON Definition JSON, or JavaScript Object Notation, is a simple data exchange format that is simple for both humans and robots to read and write. For data sharing between ... Read More