Web Fundamentals: JavaScript Objects Json and XML

kategeg121 15 views 11 slides Oct 11, 2024
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

The most common topics of we programming fundamentals the json objects and xml.


Slide Content

W eb programing Presented by Md Mohibullah Foysal ID:221902275 MD Monaz Ahmed ID :221902322

Table of contents 01 04 02 03 05 Jason O bject s Is XML equivalent to JSON? xml vs json performance JavaScript JSON Methods

Introduction of Json JavaScript Object Notation (JSON) isĀ  a standard text-based format for representing structured data based on JavaScript object syntax

All about Json Json is: Why use json: Json object Syntax: Where is Json use today:

Introduction of Objects An object is a collection of properties, and a property is an association between a name (or key) and a value. A property's value can be a function, in which case the property is known as a method. Objects in JavaScript, just as in many other programming languages, can be compared to objects in real life

All about Objects Object in JavaScript : Types Of Object: JavaScript Object Prototype: compatibility with Linux environments

XML and JSON JSON and XML are both data serialization formats. They allow you to exchange data across different applications, platforms, or systems in a standardized manner.

Is XML equivalent to JSON? As a markup language, XML is more complex and requires a tag structure. In contrast, JSON is a data format that extends from JavaScript. It does not use tags, which makes it more compact and easier to read for humans. "JSON can represent the same data in a smaller file size for faster data transfer."

xml vs json performance Data: One of the main factors that affect the performance of JSON and XML is their speed and size. Generally, JSON is faster and smaller than XML, because it has a simpler syntax and less overhead.

JavaScript JSON Methods 1.jsno.parse() This method takes a JSON string and transforms it into a JavaScript object. 2.json.stringify This method converts a JavaScript value (JSON object) to a JSON string representation. value (JSON object) to a JSON string representation.

Do you have any questions? Thanks